Page 1 of 1
Google submission issue
Posted: Tue Aug 08, 2006 1:35 am
by Berg
I use the following redirect in my index.php file in order to point my home page to my blog. Does this setup create a problem for Google indexing?
I registered my site a few weeks ago, but haven't been able to find it when I search Google. Should I put in Meta tags? Any help would be appreciated.
<?php
header('Location:
http://www.alphastocks.com/cblog/index.php');
?>
Re: Google submission issue
Posted: Tue Aug 08, 2006 11:23 am
by garvinhicking
Hi!
Adding the header('HTTP 1/0 301') header indicates that the document has finally moved, which would be a tad better for google.
Note that google can only find your page if other people link to you - and it might very well take 1-2 months until Google listens to a new domain...
Best regards,
Garvin
Posted: Tue Aug 08, 2006 2:19 pm
by Berg
So would it look like this:
<?php
header('HTTP 1/0 301');
header('Location:
http://www.alphastocks.com/cblog/index.php');
?>
Is that correct:
Posted: Tue Aug 08, 2006 3:27 pm
by garvinhicking
Hi!
I think I made a mistake in the first one, which should read "HTTP/1.0 301".
Best regards,
Garvin
Posted: Tue Aug 08, 2006 4:09 pm
by Berg
So like this?
<?php
header('HTTP/1.0 301');
header('Location:
http://www.alphastocks.com/cblog/index.php');
?>
Posted: Tue Aug 08, 2006 4:17 pm
by garvinhicking
Hi!
Yes, just have a try. It might not work on all servers, and only if PHP is embedded as a module and not CGI.
But this is all optional, and google should not have a problem without it. But with it, it might react faster.
Regards,
Garvin