Results 1 to 5 of 5

Thread: want pr to pass along redirect

  1. #1
    Registered User
    Join Date
    Nov 2003
    Posts
    1

    Smile want pr to pass along redirect

    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

  2. #2
    Administrator Chris's Avatar
    Join Date
    Feb 2003
    Location
    East Lansing, MI USA
    Posts
    7,055
    Instead of making the PHP page try putting this in an .htaccess file.

    Redirect 301 /currentpage.asp http://www.yournewsite.com/
    Chris Beasley - My Guide to Building a Successful Website[size=1]
    Content Sites: ABCDFGHIJKLMNOP|Forums: ABCD EF|Ecommerce: Swords Knives

  3. #3
    Registered
    Join Date
    Nov 2003
    Posts
    67
    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 Code:
    <?php
        header
    ("HTTP/1.1 301 Moved Permanently");
        
    header("Location: http://www.yournewsite.com");
    ?>

  4. #4
    Registered
    Join Date
    Nov 2003
    Location
    San Diego, CA
    Posts
    22
    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
    Free Search Engine Position Tracker (tracks back links too)
    Free Keyword Suggestion Tool
    Free Search Engine Forums (technical focus)

  5. #5
    Chronic Entrepreneur
    Join Date
    Nov 2003
    Location
    Tulsa, Oklahoma, USA
    Posts
    1,112
    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?

Similar Threads

  1. redirect a to website
    By ronp in forum General Management Issues
    Replies: 2
    Last Post: 04-08-2004, 11:54 PM
  2. Redirect
    By k0r54 in forum HTML, CSS, Layout, and Design
    Replies: 3
    Last Post: 03-28-2004, 03:40 PM
  3. need to exclude one page from a general .htaccess redirect
    By Apollo in forum General Management Issues
    Replies: 1
    Last Post: 01-10-2004, 01:56 PM
  4. redirect with htaccess
    By albsure in forum Website Programming & Databases
    Replies: 6
    Last Post: 12-07-2003, 09:40 AM
  5. Redirect
    By lemon in forum Search Engine Optimization
    Replies: 1
    Last Post: 09-09-2003, 12:47 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •