Problems with 301 Redirects for non-www pages
-
This post is deleted! -
From my experiences, I've told all my webmaster tools that www is my default. I do not use 301 redirects. What you have to do is register both URLs under your Google Webmaster Tools. When they see you as the owner of both, you can now change the setting:
1.) Login to Google Webmaster Tools.
2.) Add site (both the www and non-www)
3.) Drop verification file on root directory for both.
4.) Once both are verified, click on your site with www.
5.) Then under Site Configuration>Settings select your preferred domain.
Viola!!!
Hope this helps!!!
-
Oh, set both the www and non-www to your preferred www setting. Then you can delete your non-www from the "Add Site" list in Webmaster Tools, and only your www will exist to eliminate confusion when using the tool. This is just preference. Doesn't matter if both are on your list. They are now the same...
-
I know this option but user experience, I would like to redirect this page. Do you know how to redirect the page?
-
Duh, server side...
-
its more complicated than that, i alraeady added the code below, but there is no header response since there no deault page. I need someone to help me with this issue.
RewriteCond %{HTTP_HOST} ^seomoz.org [NC]
RewriteRule (.*) http://www.seomoz.org/$1 [L,R=301] -
What server? Apache, Microsoft IIS, etc?
This covers both: http://www.stepforth.com/resources/web-marketing-knowledgebase/non-www-redirect/#.TyL01qVSSRg
-
The sites are running under a Linux environment(Debian) with the Apache2 server.
-
On my end, I'm seeing a redirection loop for www.meliacozumel.com. This error:
Error 310 (net::ERR_TOO_MANY_REDIRECTS): There were too many redirects.
Not that it's not loading. It's in a infinite loop. Could something probably be cached server side that needs to be removed to kill the loop?
-
Do you have this for your first example:
RewriteEngine On
RewriteCond %{HTTP_HOST} ^meliacozumel.com
RewriteRule (.*) http://www.meliacozumel.com/$1 [R=301,L]
Also make sure you have the Apache Rewrite Module turned on. Check the httpd.conf file, and take the comments off LoadModule rewrite_module modules/mod_rewrite.so in order for it to be active.