301 Redirect

Discussion in 'Site & Server Administration' started by travoholic, Apr 6, 2007.

  1. #1
    Hi guys,

    I'm trying redirect my site's index.htm file to index.php (which I'm hoping will carry over the PR). I can get it to work if I type index.htm but I can't get it to work for just typing in the URL alone without index.htm on the end.

    Here's what I have in my .htaccess file:

    redirect 301 /index.htm http://www.travoholic.com/index.php

    What do I need to type to have http://www.travoholic.com redirect to the PHP page?

    Thanks!
    Kirsty
     
    travoholic, Apr 6, 2007 IP
  2. Artisan

    Artisan Well-Known Member

    Messages:
    634
    Likes Received:
    35
    Best Answers:
    1
    Trophy Points:
    128
    #2
    You should not redirect the / page, it would be better for both the users and the search engines to make /index.php to be the default page for the / page in the Apache configuration files, if you would try to load the page http://www.travoholic.com/ then the content of page http://www.travoholic.com/index.php would load without any redirects.
     
    Artisan, Apr 6, 2007 IP
  3. travoholic

    travoholic Well-Known Member

    Messages:
    299
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    108
    #3
    Thanks but how do I do that? And would that still pass along the PR?

    THanks!
     
    travoholic, Apr 8, 2007 IP