1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

Best to Use 301 Redirects for File Extension Change?

Discussion in 'Search Engine Optimization' started by Burta, Dec 17, 2006.

  1. #1
    OK I have abut 40 articles on a site that are ranking very well on the search engines and pulling in hundreds of unique visitors a day for my site. That said, I have recently created a new template for the site which will see the article pages changed from /articlepage.html to /articlepage.php

    I was just wondering what was the best way to go about changing this file extension and retaining the SERP rankings, traffic, PR etc? And how would I go about doing it? And what sort of effects upon SERPs and PR can I expect?
     
    Burta, Dec 17, 2006 IP
  2. Litho

    Litho Peon

    Messages:
    105
    Likes Received:
    8
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Use the .htaccess file, simply add this line to the bottom of the file
    redirect 301 /page1.html h ttp://www.sitename.com/page1.php

    Personally, I would place the 301 in each file, but the easiest is the .htaccess file.
     
    Litho, Dec 17, 2006 IP
    Burta likes this.
  3. stOx

    stOx Notable Member

    Messages:
    6,426
    Likes Received:
    130
    Best Answers:
    0
    Trophy Points:
    230
    #3
    If you have to change the names a 301 would be best.
    If you don't have to change the names but still want to be able to include php in these files use this in your htaccess

    AddType application/x-httpd-php .php .html
    Code (markup):
    It will parser html files as php as they would if they had a php extension.
     
    stOx, Dec 17, 2006 IP
  4. Burta

    Burta Well-Known Member

    Messages:
    1,199
    Likes Received:
    146
    Best Answers:
    0
    Trophy Points:
    165
    #4
    Thanks. Also why would you add a 301 in each file - does this have added SEO benefits? What will the effects be on SERPs if I apply this method?


    Well I plan to create more articles in the future and they will all be made with a .php file extension to allow things like php includes etc so I think it would be in my interests to keep things consistent.

    Also, so what effects will I see on my SERPs and PR if I apply a 301 redirect?
     
    Burta, Dec 17, 2006 IP
  5. Burta

    Burta Well-Known Member

    Messages:
    1,199
    Likes Received:
    146
    Best Answers:
    0
    Trophy Points:
    165
    #5
    Anyone? There is a bit of rep in it...
     
    Burta, Dec 18, 2006 IP
  6. oseymour

    oseymour Well-Known Member

    Messages:
    3,960
    Likes Received:
    92
    Best Answers:
    0
    Trophy Points:
    135
    #6
    If you use a 301 the SE's will eventually transfer the PR and the rank to the new page and drop the old one. I have never seen any drop in rankings or traffic when I do this.
     
    oseymour, Dec 18, 2006 IP
    Burta likes this.
  7. bobby9101

    bobby9101 Peon

    Messages:
    3,292
    Likes Received:
    134
    Best Answers:
    0
    Trophy Points:
    0
    #7
    I would allow PHP in html files, so you can use includes and all.
    Or use a 301 redirect via .htaccess
     
    bobby9101, Dec 18, 2006 IP
    Burta likes this.