Google submission issue

Random stuff about serendipity. Discussion, Questions, Paraphernalia.
Post Reply
Berg
Regular
Posts: 17
Joined: Sat May 20, 2006 5:38 pm

Google submission issue

Post 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');
?>
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: Google submission issue

Post 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
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
Berg
Regular
Posts: 17
Joined: Sat May 20, 2006 5:38 pm

Post 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:
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

Hi!

I think I made a mistake in the first one, which should read "HTTP/1.0 301".

Best regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
Berg
Regular
Posts: 17
Joined: Sat May 20, 2006 5:38 pm

Post by Berg »

So like this?

<?php
header('HTTP/1.0 301');
header('Location: http://www.alphastocks.com/cblog/index.php');
?>
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post 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
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
Post Reply