MyBB Community Forums

Full Version: 301 Redirects for SEO purpose
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
How do I redirect my website from www to without www so that all the SEO benefit and Link Juice passes to the website url without www ?
Add this to your .htaccess - obviously replace yoursite.com with your actual site URL. Smile

RewriteEngine On
RewriteCond %{HTTP_HOST} !^yoursite\.com$
RewriteRule (.*) http://yoursite.com/$1 [R=301,L]
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. Smile

RewriteEngine On
RewriteCond %{HTTP_HOST} !^yoursite\.com$
RewriteRule (.*) http://yoursite.com/$1 [R=301,L]

(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. Confused
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. Confused