I've placed the string below into my custom permalinks input but it does not appear to have any effect...


I'm trying to insure that my post links are in the form of /category-name/post-name

  • What is not working? Did you have a 404 error ? mod_rewrite is enabled in your server ? – keatch Feb 5 '11 at 23:37
  • Yes, mod_rewrite is working (ie, I can change permalinks to post-title.html, just not categoryname/post-title.html – Scott B Feb 6 '11 at 3:07
  • What exactly are you trying to do? As in, what is your desired URL format? – Zack Feb 6 '11 at 4:43
  • site.com/category-slug/post-slug – Scott B Feb 7 '11 at 4:05
  • Have you tried debugging your rules with my rewrite analyzer? – Jan Fabry Feb 8 '11 at 10:09

Without a link to the site in question, it's hard to understand the exact problem. However, if the issue is the actual word "category" is being includes (i.e. example.com/category/category-name/post-name) then I would use this plugin (it's one I use on almost every site)



It could be 3rd party wordpress theme conflict. Temporarily enable the default WP theme and test.

Also note:

For performance reasons, it is not a good idea to start your permalink structure with the category, tag, author, or postname fields. The reason is that these are text fields, and using them at the beginning of your permalink structure it takes more time for WordPress to distinguish your Post URLs from Page URLs (which always use the text "page slug" as the URL), and to compensate, WordPress stores a lot of extra information in its database (so much that sites with lots of Pages have experienced difficulties). So, it is best to have at least two path segments in your post's permalink structure such as /%year%/%postname%/ or even /posts/%postname%/.

Source: Wordpress.org Documentation

  • This has been debated quite a bit. If you have a lot of posts / pages (in the thousands) then you can see a hit on the performance. Otherwise, I've never seen it make a difference one way or the other. – Norcross Feb 7 '11 at 10:19

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