I need to make my wordpress permalink like the following

Permalink For Category:


Permalink For Posts:


Is there any specific code i can use with .htaccess or any plugin that might help

  • Have you tried anything? Jan 25, 2014 at 10:04
  • Yes and the main issue is..! 1 permalink is working If i put a special slug for categories the posts does not work..! Jan 25, 2014 at 10:49

1 Answer 1


This might help you:

Go to your Settings => Permalinks => Cutom Structure

And paste this:


Also paste this on Category Base field:


This will work for category but when you visit any post you will be welcomed with 404 page not found (Isn't it nice?).

So stealing from this answer

Add this code to your themes functions.php file:

add_action( 'init', 'wpa58471_category_base' );
function wpa58471_category_base() {
    // Remember to flush the rules once manually after you added this code!
        // The regex to match the incoming URL
        // The resulting internal URL
        // Add the rule to the top of the rewrite list
        'top' );

And switch back to Settings => Permalinks and click Save Changes.

  • Love you thanks man.. 404 was making my mind blow Jan 25, 2014 at 12:11

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.