
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"
wah br tau kalo yg bener kyk gitu, tp kalo permalinknya tak ganti skr bisa amburadul mas..
Ya harus berkorban mas … demi pencarian kesempurnaan
But Mas Arie, sometimes, I do really need to know the time/date information about your post. Is it an old trick on old WP version, old news, old contest/seminar event, or the new one?
If not from the URIs, it should be there on the post-title or description showed by SERPs. :)
IC .. but I don’t think using calendar based permalink will be appropriate when the article is supposed to be timeless.
The thing is the post timestamp can always be displayed on the article. In my case, I put this on the article’s footer.
I think the category based permalink can reduce blog performance rather than if we used time based permalink. (Check the wordpress statement on codex.wordpress.org/Using_Permalinks. )
How do you think bout it?
Based on the explanation, it makes sense.
But I think it will only affect to blogs with thousand content