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');
?>
Google submission issue
-
garvinhicking
- Core Developer
- Posts: 30022
- Joined: Tue Sep 16, 2003 9:45 pm
- Location: Cologne, Germany
- Contact:
Re: Google submission issue
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
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/
# 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/
So would it look like this:
<?php
header('HTTP 1/0 301');
header('Location: http://www.alphastocks.com/cblog/index.php');
?>
Is that correct:
<?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:
Hi!
I think I made a mistake in the first one, which should read "HTTP/1.0 301".
Best regards,
Garvin
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/
# 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/
So like this?
<?php
header('HTTP/1.0 301');
header('Location: http://www.alphastocks.com/cblog/index.php');
?>
<?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:
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
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/
# 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/