Instead of doing a 301 redirect, should I do this?

Discussion in 'Site & Server Administration' started by dcristo, Jan 10, 2006.

  1. #1
    Instead of messing with a 301 redirect and modifying .htaccess files when converting site pages from html to php, would it be a bad idea to simply take down the old html pages, upload the replacement php pages, and setup a custom 404 error page to capture any traffic going to the old pages... ?

    Is there dup content issues doing it this way, even though if you taken down the old html pages? There would be a period where the old pages still remain in Google's cache, even if you take them down, so I'm a little unsure about this issue...
     
    dcristo, Jan 10, 2006 IP
  2. malekov

    malekov Peon

    Messages:
    54
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #2
    The new files wont have popularity :s
     
    malekov, Jan 10, 2006 IP
  3. dcristo

    dcristo Illustrious Member

    Messages:
    19,776
    Likes Received:
    1,200
    Best Answers:
    7
    Trophy Points:
    470
    Articles:
    7
    #3
    Is that the only issue?

    I don't have external links pointing to the inner pages, so that's not an issue.

    When the next PR update is to come around, with proper internal linking structure the inner pages will retain Pagerank.
     
    dcristo, Jan 10, 2006 IP
  4. blinxdk

    blinxdk Peon

    Messages:
    660
    Likes Received:
    27
    Best Answers:
    0
    Trophy Points:
    0
    #4
    You could also just parse .html pages as php and there would be no need to rename the files.
     
    blinxdk, Jan 10, 2006 IP
  5. dcristo

    dcristo Illustrious Member

    Messages:
    19,776
    Likes Received:
    1,200
    Best Answers:
    7
    Trophy Points:
    470
    Articles:
    7
    #5
    I'm not renaming the files, just changing the file extension from .shtml to .php
     
    dcristo, Jan 10, 2006 IP
  6. ServerUnion

    ServerUnion Peon

    Messages:
    3,611
    Likes Received:
    296
    Best Answers:
    0
    Trophy Points:
    0
    #6
    just place this in your .htaccess and you can then run php code on your html pages:
     
    ServerUnion, Jan 10, 2006 IP
  7. blinxdk

    blinxdk Peon

    Messages:
    660
    Likes Received:
    27
    Best Answers:
    0
    Trophy Points:
    0
    #7
    Well that is kind of the same, the name still changes :)

    Add what ServerUnion wrote and you won't have to worry about loosing SERPS, PR or get broken links.
     
    blinxdk, Jan 10, 2006 IP
  8. dcristo

    dcristo Illustrious Member

    Messages:
    19,776
    Likes Received:
    1,200
    Best Answers:
    7
    Trophy Points:
    470
    Articles:
    7
    #8
    Cheers guys. I was familiar with ServerUnion's solution, I just want to make all my site pages only .php I feel it look's more professional that way.
     
    dcristo, Jan 10, 2006 IP
  9. ServerUnion

    ServerUnion Peon

    Messages:
    3,611
    Likes Received:
    296
    Best Answers:
    0
    Trophy Points:
    0
    #9

    file extensions have nothing to do with how professional a site looks. Changing your site structure and loosing SERP's will though ;)
     
    ServerUnion, Jan 10, 2006 IP
  10. dcristo

    dcristo Illustrious Member

    Messages:
    19,776
    Likes Received:
    1,200
    Best Answers:
    7
    Trophy Points:
    470
    Articles:
    7
    #10
    Each to their own, but I reckon seeing sites which integrate different file extensions looks amateurish. I won't lose any rankings cause I will be keeping the same internal linking structure. I haven't got any external links pointing to the inner pages, so there's no issues there.
     
    dcristo, Jan 10, 2006 IP
  11. dcristo

    dcristo Illustrious Member

    Messages:
    19,776
    Likes Received:
    1,200
    Best Answers:
    7
    Trophy Points:
    470
    Articles:
    7
    #11
    Any other feedback?
     
    dcristo, Jan 10, 2006 IP
  12. ServerUnion

    ServerUnion Peon

    Messages:
    3,611
    Likes Received:
    296
    Best Answers:
    0
    Trophy Points:
    0
    #12
    You seem to have made you mind up, no reason for anyone to comment more. good luck
     
    ServerUnion, Jan 10, 2006 IP