The Lodge is members-only design/dev videos and Office Hours.

Next Office Hours Session: "Programming Fundamentals" Dec 02 - 2:00 PM Eastern

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

    Is there a way for me to display it as

    I changed the structure to

    But that brought out

    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?


    # 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:

    # April 21, 2009 at 5:50 am

    This reply has been reported for inappropriate content.

    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


    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.


    Thanks, I’ll take a look at this.


    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.

There's a whole bunch of content on CSS-Tricks.

Search for Stuff   •   Browse the Archives

Get the Newsletter ... or get the RSS feed