AshbridgeWS Posted December 3, 2015 Share Posted December 3, 2015 Hi everyone, How do I setup my Prestashop store to use WWW. automatically for example if I type domain.com, how do I make my store display as: www.domain.com? I tried manually changing my link in the Preferences -> SEO And URL screen but it causes a redirect error? Link to comment Share on other sites More sharing options...
bellini13 Posted December 3, 2015 Share Posted December 3, 2015 in Preferences -> SEO And URL, in the domain field, simply enter www.domain.com Link to comment Share on other sites More sharing options...
AshbridgeWS Posted December 3, 2015 Author Share Posted December 3, 2015 I have tried this. As explained above, typing in WWW. causes a redirect error. Link to comment Share on other sites More sharing options...
Knowband Plugins Posted December 3, 2015 Share Posted December 3, 2015 Try below rule in your .htaccess RewriteEngine On RewriteCond %{HTTP_HOST} !^www\. RewriteRule ^(.*)$ http://www.%{HTTP_HOST}/$1 [R=301,L] 1 Link to comment Share on other sites More sharing options...
El Patron Posted December 3, 2015 Share Posted December 3, 2015 Try below rule in your .htaccess RewriteEngine On RewriteCond %{HTTP_HOST} !^www\. RewriteRule ^(.*)$ http://www.%{HTTP_HOST}/$1 [R=301,L] Thanks for your contribution. It gets a bit more complicated when shop also has https here is search with different examples of rewrites when https is taken into account: https://www.google.com/webhp?sourceid=chrome-instant&ion=1&espv=2&ie=UTF-8#q=rewrite%20non-www%20to%20www%20https at the end of the day we would prefer all pages use https, then we could use simpler rewrite rule of www and non-www. Note: make sure that preferences-->seo & urls-->domain and ssl domain match any rewrite exactly (i.e. with or without the www) otherwise front office cart make act in unpredictable ways. Link to comment Share on other sites More sharing options...
bellini13 Posted December 3, 2015 Share Posted December 3, 2015 As explained above, typing in WWW. causes a redirect error. what error? are we supposed to guess? 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