Note Submitter: mdnava at gmail dot com
----
Be aware, when using the php Header function to redirect
from one domain to another, search engines will a (perhaps
damaging) 302 temporarily redirect status code.
I believe it would be better to make use of 301 Permanently
redirects in those cases you won't need to go back to an old
domain or any other old URLs.
/* Bad way or only for temporarily redirects */
header("Location: http://www.venelogia.
com/");
/* Good and permanent redirect */
header("HTTP/1.1 301 Moved Permanently");
header("Location: http://www.venelogia.
com/");
exit();
As a side note, after I decided to move permanently to a new
domain I started (in my ingenuity) using a normal PHP
redirect from one domain to another but this caused many
indexing problems. So... Avoid using simple (and common) 302
PHP redirects unless you really need to get back to certain
URLs.
Regards,
Mel
--
PHP Notes Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub
.php
|