ridesign Posted July 28, 2014 Share Posted July 28, 2014 Hello I am trying to create my first shop online. I do not have the formation about it so if anybody can explain me how to do in order to have the same result when people use "www" or not ? Thank you Joe Link to comment Share on other sites More sharing options...
El Patron Posted July 29, 2014 Share Posted July 29, 2014 you can add code to .htaccess file that makes all www or all non-www, your choice. # Redirect non-www to www: RewriteCond %{HTTP_HOST} !^www\. [NC] RewriteRule ^(.*)$ http://www.%{HTTP_HOST}/$1 [R=301,L] # Redirect www to non-www RewriteCond %{HTTP_HOST} ^www\.(.*) [NC] RewriteRule ^(.*)$ http://%1/$1 [R=301,L] 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