WordPress.org

Ideas

Remove 'Category Base' From Permalinks

  1. ulfben
    Inactive

    12345

    The '/.'-trick doesn't work with sub-categories. Will this idea be implemented in WP 2.7?

    Posted: 10 years ago #
  2. IanSchaefer
    Member

    12345

    I am using wp 2.6.x. In Settings>Permalinks I changed the Category Base to /. (that's slash dot) as suggested by someone above. So far it works perfectly on my site, where I use categories as top-level sections a la TextPattern, my previous CMS.

    Posted: 10 years ago #
  3. IanSchaefer
    Member

    12345

    Drat! The /. trick does not work with nested categories. Now what?

    Posted: 10 years ago #
  4. realchaos1
    Member

    When editing the rewrite.php, I get 404 errors for pages, but I can still see categories. The reason why I'm trying to eliminate /category is because I want it to be SEO friendly for a blog that I am working on. /category is not relevant, and doesn't fit into the old site structure.

    Posted: 10 years ago #
  5. realchaos1
    Member

    Scratch that, this morning it was working fine. I haven't altered anything since yesterday. Cache?

    Posted: 10 years ago #
  6. MK009
    Member

    12345

    All of these plugins and redirections and regex and core hacks and semi-working-with-a-completely-standard-install-of-a-certain-version-of-wordpress-with-no-other-plugins-especially-not-that-one is all well and good. But you're opening up a can of worms for the future.

    Currently I see the best option as renaming 'category' to 'c' in admin.

    Any of your site visitors editing the url manually should be shot anyway. Survivors should be shot again. :)

    I'm not sure if anybody has mentioned this yet but 'category' is crap for SEO.

    Posted: 10 years ago #
  7. razooll
    Member

    12345

    I couldn't champion this more. It's the only reason I'm sticking with Joomla and Drupal for most sites at the moment (OK, not only but least easily resolved problem). If I really need to give my sites sections this is certainly the first step I would love WordPress to make towards that. If we could finally get this by the next mini update I would be dropping the heavier CMSs entirely.

    Posted: 10 years ago #
  8. iDope
    Inactive

    12345

    I have made a plugin "WP No Category Base" that will take care of this without breaking anything else or requiring other plugins. Check it out!

    Posted: 9 years ago #
  9. Prasad Thombre
    Member

    12345

    For WordPress 2.7.1 - wp-includes/rewrite.php

    Line no 1008

    Change->

    $this->category_structure = trailingslashit( $this->front . 'category' );

    To ->

    $this->category_structure = trailingslashit( $this->front . '' );

    :)

    http://www.myloverswish.com

    Posted: 9 years ago #
  10. iDope
    Inactive

    12345

    @prasadthombre: That won't work unless you make changes to the rewrite rules as well.

    P.S: I noticed there was an extra double quote in the URL. Here is the correct URL:
    http://wordpresssupplies.com/wordpress-plugins/no-category-base/

    Posted: 9 years ago #

RSS feed for this topic

Topic Closed

This topic has been closed to new replies.

  • Rating

    12345
    157 Votes
  • Status

    This is plugin territory