2010-08-22, 06:12 PM
2010-08-22, 06:16 PM
Add this to your .htaccess - obviously replace yoursite.com with your actual site URL.
RewriteEngine On
RewriteCond %{HTTP_HOST} !^yoursite\.com$
RewriteRule (.*) http://yoursite.com/$1 [R=301,L]
2010-08-22, 07:14 PM
This doesn't passed the Link Juice and SEO benefit to new URL.
(2010-08-22, 06:16 PM)AJS Wrote: [ -> ]Add this to your .htaccess - obviously replace yoursite.com with your actual site URL.
RewriteEngine On RewriteCond %{HTTP_HOST} !^yoursite\.com$ RewriteRule (.*) http://yoursite.com/$1 [R=301,L]
2010-08-22, 08:16 PM
(2010-08-22, 07:14 PM)durakiller Wrote: [ -> ]This doesn't passed the Link Juice and SEO benefit to new URL.
You didn't say anything about a new URL, you said redirect from www to no-www, which is exactly what the rewrite rule above does.
2010-08-23, 07:48 AM
Will this transfer the SEO benefits and Link Juice to url of the website without www ??????
(2010-08-22, 08:16 PM)AJS Wrote: [ -> ](2010-08-22, 07:14 PM)durakiller Wrote: [ -> ]This doesn't passed the Link Juice and SEO benefit to new URL.
You didn't say anything about a new URL, you said redirect from www to no-www, which is exactly what the rewrite rule above does.