Jump to content

How do I force htaccess to load https?


Recommended Posts

I have tried multiple ways to  get this to  work,  I have placed the code above the commented lines, below the commented lines, inside the commented lines, all I get when I do so is a 404.  This is driving me nuts...

...I know it can't be this difficult to  force a secure connection on Prestashop, so I've got to  be missing something obvious here. Where should I put this code inside of the .htaccess file in order to  get this site secure while at the same time not completely shutting down  Prestashop?

 

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

 

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...