Sgt1966 Posted January 2, 2011 Share Posted January 2, 2011 Where in prestashop is the website specified and how can we update it to ensure all pages are prefixed with www ?Any suggestions ? Link to comment Share on other sites More sharing options...
rocky Posted January 2, 2011 Share Posted January 2, 2011 Add the following to your .htaccess file to force all URLs to have www at the beginning: RewriteCond %{http_host} ^yoursite.com [nc] RewriteRule ^(.*)$ http://www.yoursite.com/$1 [r=301,nc] You should also install the "Canonical URL" module and enter www.yoursite.com there so search engines know to use www. Link to comment Share on other sites More sharing options...
Ivan Yukhnevich Posted January 30, 2011 Share Posted January 30, 2011 Where in prestashop is the website specified and how can we update it to ensure all pages are prefixed with www ?Any suggestions ? Fill "Shop domain name:" to your domain name with WWW.No need any rewrite rules .htaccess. Presta automaticaly rewrite Link to comment Share on other sites More sharing options...
AperoCD Posted November 3, 2014 Share Posted November 3, 2014 (edited) Here's a more generic solution we use for multi-shop where we don't necessarily know the hostname in question: RewriteCond %{HTTP_HOST} !^$ RewriteCond %{HTTP_HOST} !^www\. [NC] RewriteRule ^ http://www.%{HTTP_HOST}%{REQUEST_URI} [R=301,L] Edited November 3, 2014 by AperoCD (see edit history) 1 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