301 Redirects from PHP to HTML, I need your advice!

Discussion in 'Search Engine Optimization' started by Harland, Apr 26, 2010.

  1. #1
    Hi There,

    I have a PHP site i wish to have it redesigned in html but do not wish to loose my search engine rankings, If it were html to html I would use a 301 redirect but i do not know if i can do this PHP to HTML.

    I dont have .ht access for as it is a windows server running IIS,

    Can i still use a 301 redirect to point the old PHP page to a new HTML page if so does anyone know how to do this?

    Look forward to hearing from you,

    David.
     
    Harland, Apr 26, 2010 IP
  2. asghar.paracha

    asghar.paracha Well-Known Member

    Messages:
    720
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    118
    #2
    u need to have .htaccess file otherwise u will not be able to redirect ur dynamic content to a static page
     
    asghar.paracha, Apr 26, 2010 IP
  3. jarjar

    jarjar Member

    Messages:
    84
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    41
    #3
    yes tha is a problem because IIS servers have no htaccess but there is a feature in a server itself which lets you redirect an old url to a new url.
     
    jarjar, Apr 27, 2010 IP
  4. Sxperm

    Sxperm Notable Member

    Messages:
    4,386
    Likes Received:
    142
    Best Answers:
    0
    Trophy Points:
    225
    #4

    You can still get this problem to be solved by 301 redirect. I would recommend you go and read this comprehensive guide to get it done. Read it throughly and carefully made the change. :) - Redirect Visitors To a New Page or Site - HTML Tips and Tricks
     
    Sxperm, Apr 27, 2010 IP
  5. C-Note

    C-Note Peon

    Messages:
    55
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #5
    Why not leave the pages with the .php extension?
    Just because the new pages are only html doesn't mean the extension has to change
     
    C-Note, Apr 27, 2010 IP
  6. basickno

    basickno Member

    Messages:
    422
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    48
    #6
    Dont worry if you dont have access to .htaccess. You can use this code
    <?php
    Header( "HTTP/1.1 301 Moved Permanently" );
    Header( "Location: http://www.new-url.com" );
    ?>

    Redirecting this way will help you maintain your seo without lossing your search engine ranking.
     
    basickno, Apr 28, 2010 IP