Grow your CSS skills. Land your dream job.

need to display wordpress pages with a .htm extention

  • # April 19, 2009 at 12:22 pm

    WordPress displays its pages in a permilink structure of your choosing.

    For example
    http://www.website.com/about/

    Is there a way for me to display it as
    http://www.website.com/about.htm

    I changed the structure to
    /%year%/%monthnum%/%postname%.htm

    But that brought out
    http://www.website.com/about

    Not
    http://www.website.com/about.htm
    which is what I need

    I am pretty sure there will not be a plugin for this. Would I have to do something to the core files, .htaccess, the structure?

    Thanks

    # April 20, 2009 at 7:01 pm

    im pretty sure this isnt possible, as wordpress is built using php, so requires all files to end .php.

    Why do you want a page to end .htm anyway?

    # April 20, 2009 at 9:00 pm

    I’m pretty sure it’s possible, though I’m not sure how it’s accomplished (we have developers at work to do that sort of thing ;) ).

    Here’s what a quick search brings up:

    http://www.webmasterworld.com/forum88/945.htm

    box
    # April 21, 2009 at 5:50 am

    You could modify your server to parse .htm files as php – then rename your theme files and any links to them in wordpress… and no doubt a whle host of other files so that the whole system doesn’t break. Is there a reason why these files must show as .htm?

    # April 21, 2009 at 1:43 pm

    @chazzwick

    It’s for a client who wants to convert a site to wordpress, but retain the same urls and does not want to use redirects.

    @TheDoc

    Thanks, I’ll take a look at this.

    @box

    Yeh, I’m pretty sure you can do it too. I don’t think turning the template files to htm will work though.

Viewing 5 posts - 1 through 5 (of 5 total)

You must be logged in to reply to this topic.

*May or may not contain any actual "CSS" or "Tricks".