Post

Wordpress 404 Error When Viewing Individual Posts


title: WordPress 404 Error when viewing Individual Posts date: 2023-02-21 11:35 +1100 categories:r on individual posts due to url conflict](/assets/img/404_error_on_individual_posts_due_to_url_conflict.png)

When the category base matches the custom structure, it will cause a 404 when viewing individual posts.

Solutions

I recommend using a different category base to avoid the 404 error. After all, the category pages are different types of content then the posts, so why would they share the same url structure.

Another option is to use the category base as “resources” and the post base as “articles”

Personally, I dont think there is anything wrong with keeping the category base as the default ‘category’ slug. This way individual posts can use whatever custom url structure you like.

You can try fix this with plugins

  • https://wordpress.org/plugins/permalink-manager/
  • https://wordpress.org/plugins/custom-permalinks/

Use a regualar expressions

  • https://wordpress.stackexchange.com/questions/58471/including-category-base-in-a-post-permalink-results-in-404
This post is licensed under CC BY 4.0 by the author.