Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

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

/%category%/%postname%/

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

share|improve this question
    
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
add comment

2 Answers

up vote 1 down vote accepted

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)

http://wordpress.org/extend/plugins/wp-no-category-base/

share|improve this answer
add comment

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

share|improve this answer
    
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
add comment

protected by toscho Jun 13 '12 at 13:17

Thank you for your interest in this question. Because it has attracted low-quality answers, posting an answer now requires 10 reputation on this site.

Would you like to answer one of these unanswered questions instead?

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