Force HTTPS using .htaccess Opencart

You may wish to use your ssl cert for every page on your opencart store. To do so you will need to select “Use SSL” in your opencart amin settings. You will also need to edit your .htaccess file as follows:

 

RewriteEngine On 
RewriteCond %{SERVER_PORT} 80 
RewriteRule ^(.*)$ https://www.example.com/$1 [R,L]

 

Make sure to replace “example.com” with your domain name.

0 replies

Leave a Reply

Want to join the discussion?
Feel free to contribute!

Leave a Reply

Your email address will not be published.