Jump to content

.htaccess mod rewrite for SSL?


Recommended Posts

I have now installed SSL for my website and using the "https" does bring the site up but, the URL is directed to "http" and there is no security icon shown.

I tried editing the prestashop installed .htaccess file by pasting the following code into it:

 

# Always use https for secure connections
# Replace 'www.example.com' with your domain name
# (as it appears on your SSL certificate)
RewriteEngine On
RewriteCond %{SERVER_PORT} 80
RewriteRule ^(.*)$ https://www.highdeserttobacco.com/$1 [R=301,L]

The result was that the site could not properly resolve to the correct domain.

So, if any [spam-filter] could chime in and lead me by the hand to properly modify .htaccess to force a secure connection, I would really appreciate it!

My site URL is http://www.highdeserttobacco.com and https://www.highdeserttobacco.com both will get to the main page which now shows maintenance mode.

Thank you all!

Edited by alhefner (see edit history)
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...