Re: Be careful with 301 redirection



madsgormlarsen@xxxxxxxxx wrote:
I have moved my site from at temporary place on
http://www.madsgormlarsen.dk/andersen to final destination
http://www.winches.dk .

Google was for a few day listing both sites, I then did a 301
redirecting on the old www.madsgormlarsen.dk/andersen. Which appear to
work perfectly. However then Google removed http://www.winches.dk from
their index and kept http://www.madsgormlarsen.dk/andersen?

Needless to say, that was not the result I was looking for ☺

Now I am not alone in having this problem, and none seems quite to
understand why this happens.

Take a look at these

http://www.webmasterworld.com/forum30/33387.htm

http://www.webmasterworld.com/forum30/31139.htm

NONwww and www could be the issue here.

My hosts has set my accounts by default such that the content of a site
is accessible from both the www and non-www versions of the domain. And
perhaps this is what caused the problem, one could imagine that Google
can not handle more than one redirect on the same URL?
But how can I know whether I am putting stuff in the nonwww og the www
at my host? How does one find out the “direction” of the redirect?
The folder at my host is without the www so does that mean I putting
stuff in the nonwww and everyone who visits are redirected from the www
to the nonwww?

HISTORY - if you want to know more....

My redirect returned

HTTP header returns:

HTTP/1.1 301 Moved Permanently =>
Date => Tue, 14 Mar 2006 19:11:44 GMT
Server => Apache/1.3.34 (Unix) Sun-ONE-ASP/4.0.2 PHP/4.4.2
mod_ssl/2.8.25 OpenSSL/0.9.6b FrontPage/5.0.2.2635 mod_throttle/3.1.2
Location => http://madsgormlarsen.dk/andersen/
Connection => close
Content-Type => text/html; charset=iso-8859-1

I am now trying to add both old and new site to Google sitemaps beta
program. Apparently Google could not find the map at the old site, I am
guessing this is because it is redirected to the new site.

http://www.madsgormlarsen.dk/andersen/sitemap.xml

But I placed the same sitemap at both sites, and then Google did find
it at the redirected place.

http://www.winches.dk/sitemap.xml

Now winches.dk showed up in Goolge search result once again, and there
was much rejoicing. Until it disappear from search results once again,
and left me with the old site in Google search result.

In the Googe sitemap for
http://www.madsgormlarsen.dk/andersen/sitemap.xml I get the following
error message “This url is not allowed for a Sitemap at this
location.” Which is strange because Google suggest you use a 301, and
a sitemap to point to the new site. Which is what I have done.

Now I am trying to give up on the 301 redirect, I just use a javascript
for the redirect.

Ok, that also did not work.

www.winche.dk is back in the index, but it has almost no pagerank, and
does not show unless one search for very speccific words.

I might try this
Delete the Andersen folder under www.madsgormlarsen.dk, and set up a
robot.txt with the following text.

User-agent: Googlebot
Disallow: /andersen

My hope is that this will finally kill of that folder in google’s
index, and give www.winches.dk a chance to move up the charts.



Drop any javascript redirects, quickly.

Reimplement the 301, and be patient. (stop watching the pr# while you are being patient)

Put this in .htaccess file in your root directory (assumes you have mod_rewrite enabled on your host)

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

Submit a sitemap for www.example.com

Change "example" above accordingly, and then wait.

.



Relevant Pages

  • Re: Victim of US/China politics, or simply bad luck?
    ... pictures of Asian models and their pictures are all ... of why my site was banned), to another internal google email she gave ... http://seelai.com (A Address redirect to an IP address at Register.com ... Typepad, as Typepad wants the user to name the blog, and in my case I ...
    (alt.internet.search-engines)
  • Be careful with 301 redirection
    ... Google was for a few day listing both sites, ... NONwww and www could be the issue here. ... can not handle more than one redirect on the same URL? ... But I placed the same sitemap at both sites, ...
    (alt.internet.search-engines)
  • Re: Anybody Come Across A Weird Redirect?
    ... I changed the DNS from ISP provider to OpenDNS in case Comcast's DNS was ... computer using Google I get a redirect to some apparently random website. ... I reset the Internet Protocol and reset I.E. to ...
    (microsoft.public.security.virus)
  • Re: Google keywords and 301 redirects
    ... 301 redirect was implemented. ... If both pages are brand new never before seen by Google and both are on ... then make sure you don't accidentally link to the shorter URL and don't ...
    (alt.internet.search-engines)
  • Re: any way to do a redirect?
    ... > ago with 3 folder names having spaces. ... > Google partially indexed the site. ... > I could call the host tech support again and ask about other scripts. ... >> what situation are you trying to do a redirect for, ...
    (microsoft.public.frontpage.client)