Category Based Permalink

WordPress permalink is a good thing but sometimes it can be tricky. Some people need a category based permalink for SEO instead a calendar based which is recommended by WordPress. The way to easily do this is to use the Custom Structure on Permalink Setting and fill in the field with /%category%/%postname%/. That’s it? I really don’t think so.


Now after you set the custom structure permalink into the one I’ve mentioned. Try to make a subcategory and create a post under it, I bet you will get a 404 error page instead the article you’ve posted and that’s not just the issue. Split your index page into several pages and try to navigate to the next page and see what will happen.

How to trick the category based permalink

I need a category based permalink to use on this blog so this is what i did.

I add an extra .html (You can use anything instead of .html though) into the permalink structure. So, the permalink structure will be

/%category%/%postname%.html/

That’s it, now the pagination should work correctly.

6 comments on "Category Based Permalink"
Leave a Response