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.

Reworking my site, should I dump .php3 extension?

Discussion in 'PHP' started by elklabone, Feb 11, 2005.

  1. #1
    Have an established site with good PR - in dire need of a facelift.

    Site was set up with .php3 extension (give you idea of how old site is).

    Should I change to .php or .html extension when I re-write? Would be prettier, but will lose PR (temporarily).

    Whaddya think? Worthwhile, or am I being too anal?

    --Mark
     
    elklabone, Feb 11, 2005 IP
  2. ResaleBroker

    ResaleBroker Active Member

    Messages:
    1,665
    Likes Received:
    50
    Best Answers:
    0
    Trophy Points:
    90
    #2
    You could always go without the extensions in case you change technology again.

    Example: link-without-extension
     
    ResaleBroker, Feb 11, 2005 IP
  3. elklabone

    elklabone Peon

    Messages:
    242
    Likes Received:
    10
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Well, we're still using php...

    But the php3 extension is just a little, I dunno.. clunky.

    Newer sites I force .htm or .html to parse with PHP, but gives a little security boost (maybe).

    I just hate to change the extension, but I'd kind of like to anway.

    --Mark
     
    elklabone, Feb 11, 2005 IP
  4. neterslandreau

    neterslandreau Peon

    Messages:
    279
    Likes Received:
    8
    Best Answers:
    0
    Trophy Points:
    0
    #4
    The extension is something the server understands. On my own site, I use the .tngx extension, which of course, is not a "real" extension. It's still just PHP.

    Because you already have PR and traffic coming to the old pages, I'd keep them with the old extension and give any new pages the new extension.

    But if you really want to go with .php or whatever, you can always write an auto_prepend script that rewrites the URI to the new one.
     
    neterslandreau, Feb 11, 2005 IP
  5. neterslandreau

    neterslandreau Peon

    Messages:
    279
    Likes Received:
    8
    Best Answers:
    0
    Trophy Points:
    0
    #5
    My response yesterday was a little hurried and to my chagrin, I spoke before I did any research.

    herbal-nutrition.net PR 5
    herbal-nutrition.net/index.php PR 4
    herbal-nutrition.net/contact.php3 PR 0
    herbal-nutrition.net/contact.php PR 4

    My gut feeling is that if you just change the sequence of the directoryindex directive in your httpd.conf file (assuming you're running apache) to have index.php before index.php3, your new alpha site will be showing by default and with no PR penalty.

    I'd love to hear anybody's thoughts on this..
     
    neterslandreau, Feb 12, 2005 IP
  6. Guy G

    Guy G Peon

    Messages:
    27
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #6
    What if you stay with the PHP3 extension and use mod_rewrite to write to HTML or whatever you want? will it affect the PR?
     
    Guy G, Feb 12, 2005 IP
  7. elklabone

    elklabone Peon

    Messages:
    242
    Likes Received:
    10
    Best Answers:
    0
    Trophy Points:
    0
    #7
    Google would still see the new extension wouldn't they - and my PR would drop off temporarily, which really isn't a big deal unless it effects our SERPS. That's kind of why I added the "alpha" link at the bottom, building new pages with .php extension, kind of hiding it from visitors but letting Google find it and bring the PR up, then I was gonna put a 301 (that's the right code for moved permanently, right?) on the old .php3 pages.

    Again, it's purely cosmetic...
     
    elklabone, Feb 12, 2005 IP
  8. dchoe

    dchoe Active Member

    Messages:
    64
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    93
    #8
    dump it and use .php.. like you posted before, the php3 had a PR0, so why keep it
     
    dchoe, Feb 13, 2005 IP