SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Zealot
    Join Date
    Jul 2008
    Posts
    140
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    WordPress: Set Category Base to NULL

    In WordPress by default the categories permalinks are as follows: http://example.com/category/%category%, where %category% is the name of the category.

    However, I want to get rid of the /category/ so a link to a category would look like: http://example.com/%category/

    Currently the permalinks to my posts are: http://example.com/%category%/%postname%

    Having the permalink as http://example.com/%category/ would more clearly define a URL structure to search crawlers. Unfortunately, I haven't been able to set the category base to just nothing (NULL) because if you leave that field empty, it will use the /category/%category% structure by default.

    Setting the category base to %category% will come come up with links like: http://example.com/pc/pc, where pc is a category.

    Sorry if it sounds confusing, I hope you know what I mean. Anyone know any plugins, methods, or code edits for this?

    EDIT: sigh, I put this in the wrong forum. Could someone move it to the "Scripts and Online Services " forum?

  2. #2
    Follow Me On Twitter: @djg gold trophysilver trophybronze trophy Dan Grossman's Avatar
    Join Date
    Aug 2000
    Location
    Philadephia, PA
    Posts
    20,580
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Actually, the blogging forum is probably best as that's where all the WordPress users hang out

    Having the permalink as http://example.com/%category/ would more clearly define a URL structure to search crawlers.
    Crawlers don't need to know or care about an implied URL structure. They follow links on pages, they don't rewrite URLs.

    Regardless, you can do this with a plugin called Advanced Permalinks. It lets you set an empty category base, I'm using this on a site now.

  3. #3
    SitePoint Zealot
    Join Date
    Jul 2008
    Posts
    140
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I like to think they use the URL structure to help come up with the sitelinks. At any rate, even if it doesn't do anything for SEO I think it's a more logical structure to the site for visitors.

    Thanks a bunch.. that plugin worked perfectly These forums need +rep :P


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •