Set Category Base to NULL (4 posts)

  1. CDSanchez
    Posted 8 years ago #

    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?

  2. moshu
    Posted 8 years ago #

    I know of a lot attempts to change that default behaviour - but I don't know of any that was successful.

  3. iridiax
    Posted 8 years ago #

    Don't do it. This would give categories the same URL structure as pages (likely leading to WordPress confusion and weird errors). This also a good reason not to use only /%postname%/ for your permalink structure because then posts would also have this same page URL structure.

  4. CDSanchez
    Posted 8 years ago #

    I asked on another forum and they pointed me to: http://wordpress.org/extend/plugins/advanced-permalinks/

    Does the job perfectly

Topic Closed

This topic has been closed to new replies.

About this Topic