redirect help, will it affect my rankings?

Discussion in 'Link Development' started by tusen, Sep 2, 2006.

  1. #1
    I am coverting my pages from .html to .php... and I need help on redirecting... some people said something about 404 redirect... how do you do it? also how will this affect my rankings? thanks
     
    tusen, Sep 2, 2006 IP
  2. drno

    drno Peon

    Messages:
    33
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    301 redirect is the most search engine friendly method for webpage redirection.

    If you are using Apache http server, and your html files are located in the document root directory, you may try to add something like:

    to your .htaccess file.
     
    drno, Sep 2, 2006 IP
  3. tusen

    tusen Active Member

    Messages:
    568
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    60
    #3
    how do i redirect the html page to the php page... i have little to no knowledge of .htaccess
     
    tusen, Sep 2, 2006 IP
  4. drno

    drno Peon

    Messages:
    33
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Are you using the Apache HTTP-server?
     
    drno, Sep 2, 2006 IP
  5. topicalone

    topicalone Well-Known Member

    Messages:
    184
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    108
    #5
    You need a 301 permanent redirect .

    Open htaccess file - this file is usually located in your document root.
    If the file is not present, then create one.

    Open the file and write the following code:

    RewriteEngine on
    RewriteRule ^(.*).html$ ($1).php [R=301,L]

    The above code will work provided you have already converted all the .html extension into .php
     
    topicalone, Sep 2, 2006 IP
  6. mad4

    mad4 Peon

    Messages:
    6,986
    Likes Received:
    493
    Best Answers:
    0
    Trophy Points:
    0
    #6
    Don't bother redirecting them. Just use htaccess to make them parse and behave like php pages.
    AddHandler application/x-httpd-php .html
     
    mad4, Sep 3, 2006 IP
    falco85 likes this.
  7. falco85

    falco85 Peon

    Messages:
    721
    Likes Received:
    40
    Best Answers:
    0
    Trophy Points:
    0
    #7
    If you don't want to affect your pagerank, then a 301 redirect is what you are looking for. You can easily perform one with a .htaccess file.

    Otherwise, use a temporary 302 redirect if this is just a temporary thing.

    Anyway, mad4's suggestion here above is great :)
     
    falco85, Sep 3, 2006 IP