.PHP pages and SEO

Discussion in 'Search Engine Optimization' started by madmn, Apr 19, 2008.

  1. #1
    I need to have my index page be a PHP extention so I can run most recent blog posts on. Is this going to hurt the overal search engine optimization of the home page?
     
    madmn, Apr 19, 2008 IP
  2. astup1didiot

    astup1didiot Notable Member

    Messages:
    5,926
    Likes Received:
    270
    Best Answers:
    0
    Trophy Points:
    280
    #2
    No, but if your changing them after web pages have already been indexed you need to do one of two things...

    1. Parse PHP to *.html files (allows you to run php code inside *.html files) by adding the below code into your .htaccess file.

    
    RemoveHandler .html .htm
    AddType application/x-httpd-php .php .htm .html
    
    Code (markup):
    2. 301 redirect old URLs to the new URLs by adding the below code for each URL into your .htaccess file

    
    Redirect 301 /oldwebpage.html http://www.newsite.com/newpage.php
    
    Code (markup):
     
    astup1didiot, Apr 19, 2008 IP