Forum Moderators: open
On the website's home page, [mysite.com...] I have to run a few lines of script to send & check for cookies, then I've used the PHP header function to redirect it to the real homepage. Like this:
<?php
[some script]
header("Location: [mysite.com...]
?>
I know that google hates sneaky redirects, but there's nothing sneaky about this ... it is the same for all visitors and is simply used to send a cookie and then check for it on the next page. What, if any, effect will this have on my page rank and the googlebot?
Thanks for your help
n
You should be OK, Googlebot has plenty of 302 in its diet.
In your case, you'll actually get the desired effect because Googlebot will index the content of your home.php page under the url [mysite.com...] - meaning that a visitor finding your site via Google will still go through your cookie testing magic etc.
Just make sure that spiders can get through OK aswell.
That means the url in SERPs would be www.site.com/home.php. If you use 302 (Moved Temporarily) Google will list www.site.com instead.
This is good however Easyspace use 302 instead of 301 for their url redirect features. So Google now lists my old domain, which is always updated with text from the new site, and the new domain. Sometimes on the same SERP :(
Will this problem go away after the indexes are rebuilt? Should I be concerned about the duplicate listing?
Thanks.
Server Header Checker [searchengineworld.com]
As long as the 301 is set up properly and is returning a 301 status from the server header, you should be fine. Google will eventually merge the two together and list the url that you are permanently redirecting to.
I've seen this happen with 301 and 404 pages and it usually is temporary.
Browses catch all the new URL striaght away,
other crawlers do a good job Scooter, Ask jeeve/teoma, FAST, Inktomi they catch all the new URLs
But google freshbot catch the 301 redirect, but it doesn't follow the new URL, i kept following the apache log, but sadly google freshie never follow new link.
here is the Freshie Log
-----------------------------------------------
64.68.82.31 - - [08/Jun/2003:04:08:46 -0500] "GET /out/dated/url.html HTTP/1.0"
301 352 "-" "Googlebot/2.1 (+http://www.googlebot.com/bot.html)"
-------------------------------------------------------
Here is the redirect script[php].
------------------------------------------------------
header("HTTP/1.0 301 Moved Permanently");
header("Location: [domain.com...] ");
header("Connection: close");
--------------------------------------------------------
ANYONE? Please tell me what i did wrong, i want freshie get the New Web address as well
Hmm. I'll ask about the 301's with freshbot.
Simon.