The last time I asked a question that required an opinion response, I was awarded the dubious tumbleweed badge. I'm fearful of adding to my collection, but here goes :)

I'm considering writing an option into my theme that would force all pages and posts to have a .html extension and all category landing pages to have URLs without the category base name in them.

For this reason, I'd like to get opinions on how feasible it is to switch between my custom URL structure and the WordPress default structure, in the event the site owner wants to revert back after changing to the new structure.

In the new structure a category landing page would be addressed without the category base name in the url like so:


This would normally be written:


And for this to work, I'm also requiring that all posts and pages end in an extension like .html so as to differentiate between categories and posts of the same name.

For example,


1 Answer 1


WordPress › WP No Category Base « WordPress Plugins correctly reverts permalinks because it doesn't alter them in the first place.

  • Thanks for the link! It works great so far, with one exception. I was able to create a post with the same name and post slug as an existing category. So I was unable to get to the post as a result. I believe WP usually intercepts this and appends a number to the post slug. This is the point of my question, to uncover any potential issues like this and ways to overcome them. Any ideas?
    – Scott B
    Commented Feb 4, 2011 at 21:13
  • Just answered my own question. As long as you enforce that posts use .html or some other extension, the conflict should not occur. I think this is actually doable!
    – Scott B
    Commented Feb 4, 2011 at 21:24

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.