Daily Tip: Quick Trick to Remove /category/ From WordPress URL

April 9, 2010  | 
13 Comments

Having /category/ in the url of your blog url isn’t very handy for most people, especially those wanting to use WordPress as a non-blog style CMS. By default WordPress shows category archives like so:

http:/yourblog.com/category/quotes/

If you want to remove /category/ from the url, follow these two steps:

1. Go to Settings >> Permalinks and select Custom and enter: /%category%/%postname%/

2. Next set your Category Base to /.

Save it and you’ll see your URL changed to this format:

http:/yourblog.com/quotes/

Featured Plugin - Every great SEO tweak you need, in one snazzy bundle

Fully integrated with the SEOMoz API, complete with automatic links, sitemaps and SEO optimization of your WordPress setup - this is the only plugin you need to help you rank your site number 1 on Google - nothing else compares.
Find out more

Featured Plugin - Turn any WordPress page into a fully featured wiki!

To get a wiki up and running you used to need to install Mediawiki and toil away for days configuring it... not any more! This plugin gives you *all* the functionality you want from a wiki, in WordPress!!!
Find out more

Featured Plugin - Start Your Own Powerful Membership Site

If you're thinking about starting a paid, or just private, membership site then this is truly the plugin you've been looking for. Easy to use, massively configurable and ready to go out of the box!
Find out more

Featured Plugin - Add bottom corner (or anywhere else) chat to your site

No javascript required, no third part chat engine, just fully featured chat right in your own database on your own WP sites - couldn't be easier.
Find out more

Featured Plugin - Start your own Quora / StackOverflow / Yahoo Q&A site

It's now incredibly easy to start your own Q&A site using nothing more than WordPress - The Q&A plugin simply and brilliantly transforms any site, or page, into a perfect support or Q&A environment.
Find out more

Featured Plugin - Host sites, get paid, just like WordPress.com

If you've ever wondered how you could offer a paid site management and hosting service, then this is the plugin for you. Offer a freemium or paid service, for any niche you like, it's powered Edublogs.org to success already!
Find out more

Featured Plugin - Easily integrate your WordPress site with Facebook

Would you like to add Facebook comments, registration, 'Like' buttons and autoposting to your WP site? Well, The Ultimate Facebook plugin has got that all covered!
Find out more

Featured Plugin - Open an Online Store with MarketPress

Out of all the WordPress ecommerce plugins available, this has got to be the winner - easy to configure, powerful functionality, multiple gateways and more. A simply brilliant plugin!
Find out more

Featured Plugin - WordPress + Google Maps = Perfect

Simply insert google maps into posts, sidebars and pages - show directions, streetview, provide image overlays and do it all from a simple button and comprehensive widget.
Find out more

13 Responses to Daily Tip: Quick Trick to Remove /category/ From WordPress URL

  1. This will work to visit the normal page, but if you click on a category in the sidebar, your browser will go in a loop. Tried this using WordPress 3.0 beta 1.

  2. This works perfect! Thanks so much!

  3. This works great except when you have sub-categories– then it throws a 404. Any ideas to get this to work with sub-categories? Is there a plugin out there?

    Thanks!

  4. Hi there,

    We have the same problem with sub-categories (404 error page), using WordPress RC2.0. We have tried using Top Categories and Pathless Categories Plugin, but always the same problem : URL looks good, but it throws a 404 error…

    Hope someone will find a solution…

  5. I also get the looping problem in WordPress v 3 final release. Works fine with default permalinks set or when leaving /category/ in the url, but as soon as I change the category base to /. I get looping 404 errors.

    Please someone find a fix for this!

  6. Hi,

    We found a solution a few days ago for the 404 problem. First install and enable the Top Level Categories Plugin, then go to Settings > Permalinks, and set a custom structure like this :

    /%category%/%postname%.html

    You can leave the other fields empty. Note the “.html” after the post name. This will prevent WordPress from confusing categories and products URLs.

    The 404 problem will occur when you have a structure like this :

    /%category%/%postname%

    • Thank you!! This has been driving me CRAZY! lol…

    • i have tried so many thing no category base plugin,top level plugin etc but didnt found helpful these all things.when i install no category base plugin that works fine but my pagination didnt work correct.when install top level category plugin and set structure /%category%/%postname%.html it didnt work as well please help me if any one using something nice and helpful

  7. is this even relevant to wordpress MU??? I don’t even see a permalinks option under settings.

  8. Is this relevant to WordPress MU? I don’t see permalinks in settings at all.

  9. hello, this trick is good for sidebar,but when you click on any post the url look like yoururl/categoryname/postname

  10. Can we have a solution where we remove “category” and also keep the url permalink “postname”?
    when I click on a post I get:
    http://www.mysite.com/my_post
    and when I search by category I get:
    http://www.mysite.com/my_category

    ??

Click on a tab to select how you'd like to leave your comment

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Subscribe without commenting