PDA

View Full Version : want pr to pass along redirect



Destiny
11-24-2003, 07:00 PM
Hi Everyone. Thanks for the forum Chris, I hope it goes well for you.

I have purchased an expired domain name which had 2 separate entries in a well-known directory. One of the URLs is the home page so that is ok. The other is to an internal asp page.

I have set up a directory in the name of the asp page and have loaded an index file with the redirect code:

<?php
header ("Location: http://www.homepage.com");
?>

Does anyone know whether the PR will pass through to the home page along this link?

And, does hitting this link set off an error code? (301?)

Any other comments or advice would be appreciated (such as whether this is the best way to handle it).

Thanks

Chris
11-24-2003, 09:42 PM
Instead of making the PHP page try putting this in an .htaccess file.

Redirect 301 /currentpage.asp http://www.yournewsite.com/

bugsy
11-25-2003, 07:34 PM
Originally posted by Chris
Instead of making the PHP page try putting this in an .htaccess file.

Redirect 301 /currentpage.asp http://www.yournewsite.com/

Or you could also use php:


<?php
header("HTTP/1.1 301 Moved Permanently");
header("Location: http://www.yournewsite.com");
?>

digitalpoint
11-26-2003, 09:59 PM
Even though you *should* use a 301 (permanently moved), a 302 (temporarily moved) will pass PR along as well. It can take 4-8 weeks for the PR/back link data on a redirected page to show up for the destination (publicly at least).

- Shawn

Westech
01-05-2004, 02:05 PM
Is there any way to do this if you don't have access to .htaccess or php on the old server? Can I redirect and keep pagerank using html only?