Forum Moderators: open
Now, the question is why does the Google results page still list our .org site at the top when I carry out a search on most of our keywords? And then sometimes it lists the .com site. And are they competing against each other?
We don't want to ditch the redirect otherwise we risk falling off altogether. Has anyone else had this problem or can suggest a solution?
Thanks!
I know you said permanent but are you realy sure, it IS permanent (301)? Did you check the site with the Server Header Check [searchengineworld.com] or a similar tool?
What gets redirected - everything or just some directories / pages? How do you redirect - htaccess / mod_rewrite? Care to post the exemplified rewrite rules?
mod_rewrite example:
Options +FollowSymLinks
RewriteEngine on
RewriteCond %{HTTP_HOST}!www\.example\.com [NC]
RewriteCond %{REQUEST_URI}!^/robots.txt
RewriteRule (.*) http[b]:[/b]//www.example.com/$1 [R=301,L]
What about robots.txt? Did you put a robots.txt at the old site that disallows all bots?
robots.txt example:
User-agent: *
Disallow: /
And how many links go to the new .com domain compared to the old .org domain? Are still most of the links going to the old domain? Or are the links to the old .org domain higher pr links than those to .com?
This is the code that covers the redirect:
Sub SafeRedir(ByVal URL)
Response.Buffer = True
Response.Status = "301 Object Permanently moved"
Response.AddHeader "Location", URL
Response.Write "<HTML><Head>"
Response.Write "<META HTTP-EQUIV=Refresh CONTENT=""0;URL=" & URL & """>"
Response.Write "<Script>window.location='" & URL & "';</Script>"
Response.Write "</Head>"
Response.Write "</HTML>"
End Sub
We don't have a robots.txt on our old site.
We do have more links going to the old site than the new one - do you think this is the ultimate problem? I have tried to contact a lot of these sites to ask them to update their links but haven't had much luck.
301 Object Permanently moved
should read
301 Moved Permanently
What i've also observed is the fact that addtional lines after the
Response.AddHeader "Location", URL
can cause problems. It leads to an output that includes the Content-Length header field and normaly a redirect header ends with the location line, not with any additional Content-Length info. Content-Length means, there is content and a redirect usually has no content.
Why do you output the <html> section with the meta + the script anyway? You wouldn't need this - normally. If google reads the additional meta refresh, the site stays in the index. That's how google treats meta refresh. You should get rid of it.
I can't find any recent information about the SafeRedir script so it looks a bit outdated or at least very, very rare to me. Are you able to change the old domain to a simple apache server and use htaccess / mod_rewrite?
I tend to bet, your problems would be solved then ...