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.

301 Redirect from ".html" to "/"

Discussion in 'Apache' started by Kitmitsu, Sep 13, 2010.

  1. #1
    I've recently taken the arduous task of moving from an archaic news system to Wordpress. Annoyingly, my old system used to make the friendly urls like this:

    http://domain.com/2009/12/16/final-fantasy-xiii-released-new-screenshots-from-famitsu.html

    While Wordpress makes them like this:

    http://domain.com/2009/12/16/final-fantasy-xiii-released-new-screenshots-from-famitsu/

    I can't seem to make a 301 redirect that will simply remove the .html from the link and add a forward slash. Can anyone help?

    Thanks.
     
    Kitmitsu, Sep 13, 2010 IP
  2. mcfox

    mcfox Wind Maker

    Messages:
    7,526
    Likes Received:
    716
    Best Answers:
    0
    Trophy Points:
    360
    #2
    You can set the permalinks on Wordpress to display the .html part. I'm not sure what your permalink structure is set to but if you remove the last forwardslash and add .html your pages should now display as .html.

    e.g.

    /%year%/%monthnum%/%day%/%postname%.html
    Code (markup):
     
    mcfox, Sep 13, 2010 IP
  3. Kitmitsu

    Kitmitsu Peon

    Messages:
    2
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    That's a much easier way to do it. Thanks for that.
     
    Kitmitsu, Sep 13, 2010 IP