Jump to content

quick ssl issue


Recommended Posts

There's a few ways to do it. If you only have one domain (aren't parking other domains or transferring credit from previous domains to this one), then you can use the following (at the top) of your .htaccess file in the root of the domain:

RewriteEngine On
RewriteBase /

RewriteCond %{HTTP_HOST} ^example\.com [NC]
RewriteCond %{SERVER_PORT}s ^(443(s)|[0-9]+s)$
RewriteRule ^(.*)$ http%2://www.example.com/$1 [R=301,L]



Obvously replace example.com with your own domain, and note that the \. is to escape any "dots" so .co.uk would be \.co\.uk but only need (and sometimes not) in the RewriteCond(ition) statement.

This should likely work woth Prestashop friendly urls but I'm not in a position to test it right now!

EDIT: the above also assumes that ssl is running on port 443 :)


Paul

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