• There absolutely has to be a way to do this, and it’s a challenge, so read carefully!

    I’m wanting to remove the slug entirely when using the category “uncategorized” within the URL. However, it seems that using RewriteEngine isn’t working (and I’ve tried a lot of different variations) and I can’t seem to find the code -anywhere- to modify it.

    For example, I would like to have:

    mysite.com/uncategorized/about.htm
    – become:
    mysite.com/about.htm

    – however:
    mysite.com/cool/stuff.htm
    – will stay:
    mysite.com/cool/stuff.htm

    — So, how do you remove the uncategorized slug? You can’t delete it in the options (or in mysql anyways) and there isn’t a plugin that does this, nor can I find the code to do it myself.

    So if you have any ideas, please let me know! Because I’m sure it hasn’t been done yet and would be nice if there’s a way to do it.

    Please don’t message saying “Just delete the category” or “Use 301 redirects” — it needs to be SEO-friendly ??

Viewing 6 replies - 1 through 6 (of 6 total)
  • Hi robertark, fortunately, there is a plugin for you.

    Visit https://urbangiraffe.com/plugins/advanced-permalinks/ and take a loot at the Category-specific permalinks

    Best regards

    Thread Starter Rob W

    (@robertark)

    That won’t work – did you read my question?

    Thread Starter Rob W

    (@robertark)

    Err, forgot to include…

    The current permalink settings are “/%category%/%postname%.htm”

    However, if %postname% is in the “uncategorized” category, then it will not use the “/%category%/” slug.

    Thanks

    Thread Starter Rob W

    (@robertark)

    Ohh it does work, I forgot to edit the category itself, thanks!

    Hey, You are welcome.

    Hi Robert – and Hedon!

    I have the same problem, yet I can’t understand the plug-in interface. I guess WP has changed since it was written, and the instructions don’t match what I see anymore.

    How do I do this? (changing the “karlotta.com/uncategorized/post-name” permalink structure to “karlotta.com/post-name”?)

    It would be great to get a bit of help! Many thanks ??

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Uncategorized Slug’ is closed to new replies.