Hello,
How do I redirect www to non www? The add to cart function seems to stop working?
RewriteEngine on
RewriteCond %{HTTP_HOST} ^mydomain.com [NC]
RewriteRule ^(.*)$ http://www.mydomain.com/$1 [R=301,L]
RewriteCond %{HTTP_HOST} ^mydomain.com [NC]
RewriteRule ^(.*)$ http://www.mydomain.com/$1 [R=301,L]
The question was how to redirect "www to non www" not the vice versa.
But I think everybody can guess how to alter the code posted above
But I think everybody can guess how to alter the code posted above
SEO - Search Engine Optimization
For Google
http://domain.com
and
http://www.domain.com
are 2 separeate URL's.
So if you are not using the technique described above, you have the same content on to different URL's.
It's not terrible, but for SEO purposes it's better to consolidate your content on 1 URL.
For Google
http://domain.com
and
http://www.domain.com
are 2 separeate URL's.
So if you are not using the technique described above, you have the same content on to different URL's.
It's not terrible, but for SEO purposes it's better to consolidate your content on 1 URL.
Who is online
Users browsing this forum: No registered users and 57 guests