simonetb Posted November 8, 2018 Share Posted November 8, 2018 Hello, on my prestashop 1.7.1.0 known that sometimes there are problems derived from cookies on chrome (unable to login for example) because chrome saves two different cookies related to my site: site.com www.site.com I would like you to save everything under the www address of my site. I tried to add this code to the htaccess file but it did not work RewriteEngine on RewriteCond %{HTTP_HOST} !\..+\. RewriteRule ^ http://www.%{HTTP_HOST}%{REQUEST_URI} [R=301,L] Link to comment Share on other sites More sharing options...
PrestaHeroes USA Posted November 8, 2018 Share Posted November 8, 2018 hi, are all your pages SSL'ed or only some pages? Try this but you will need more complex if only some pages ssl'ed.. #Force www: RewriteEngine on RewriteCond %{HTTP_HOST} ^example.com [NC] RewriteRule ^(.*)$ http://www.example.com/$1 [L,R=301,NC] Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now