Forum Moderators: phranque

Message Too Old, No Replies

add .html extension to urls in Wordpress

how to add .html extension in Wordpress to keep existing url structure

         

reese

12:29 pm on Sep 8, 2008 (gmt 0)

10+ Year Member



Hi there,

I read this post:
[webmasterworld.com...]

which is somewhat applicable to where I want to go, except I need to go a bit further, I think.

Installing WP on an existing site and want to maintain existing url structure. Here's two URL examples for you:

http://example.com/widgets-are-so-neato.html

and
http://example.com/holycow/i-really-love-widgets/index.html

and
(yes, that second url is kind of stupid with the index.html extension but I want to try and work with it).

I'd rather keep these urls than 302 them.

The tricky part is the non-directory ones. (.com/yay-widgets.html). How can I pass an .html extension to a WP so that WP's output of this:
.com/yay-widgets

becomes .com/yay-widgets.html

Thank you in advance for help!

[edited by: jdMorgan at 3:35 pm (utc) on Sep. 8, 2008]
[edit reason] example.com [/edit]