I have changed the category base name and now it is "blog", it works ok.

But when I change structure by /blog/%category%/%postname%/. It shows 404.

If I remove blog in structure it works again, but I want to use blog word.

Where is the problem?

Thank you

permalinks error

1 Answer 1


What happening is that WP is searching for a category rather your post. So the category rewrites come before post rewrites and that is making the WP confused.

For more info about the rewrites, I can point you to an excellent article here

  • If WP search my category first, is not possible use this permalink? Commented Nov 13, 2017 at 13:20
  • Any function that it let me change the permalink? Commented Nov 13, 2017 at 13:20
  • Why you don't leave the Category base empty and leave the permalink structure as is. This way will have the example.com/blog/category-name/post-name Commented Nov 13, 2017 at 13:23
  • because then in my categories url don´t show the name blog before Commented Nov 13, 2017 at 13:25
  • Look at it this way. For this url: http://example.com/blog/one/two. Is two a post in category one? Or is two a subcategory of one? You can't tell by looking at it, and neither can WordPress. You need to provide some way to distinguish them. Commented Nov 13, 2017 at 13:27

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.