Support » Plugins and Hacks » Hacks » Inserting Category Slug in URL without Using Permalinks Menu

  • Bear with me here…

    We’ve got about 2000 posts on our site. Right now we are not using the category slug in the URL and we want to. The thing is, we want to roll it out slowly so we can see the impact and more easily manage redirects.

    So the idea is to add it one category at a time.

    I have no starting point. Where would you start?

    add_rewrite_rule() perhaps?

Viewing 5 replies - 1 through 5 (of 5 total)
  • Hey, tspek, have you checked into the Redirection Plugin? Pretty sure you can set up specific groups to redirect (either using the regex options or a straight category-by-category setting. This would allow you to choose which categories are getting redirected without requiring you to change them all wholesale.

    Thanks James. That would work but we would have to manually enter each article and wouldn’t address future articles (so we would have to redirect every single URL on our page, both now and in the future).

    Must be a way

    Heya tspek,

    Actually that’s not true (the part about having to manually set up the redirects). But it’s also not simple and straight forward. The plugin does have the facility for you to set up matching options (regex) that compares the URL request to the rule you create and then redirects that request to wherever you want them to go. But again, this is not an easy solution to master and will take you some time to figure it out for your specific situation.

    Short of that, however, I agree with you. There must be a way and I sincerely hope you find it. I’ll keep thinking about it and post back if something enlightens me 😉

    Have a great day!

    Cheers! :)

    Maybe we’re not on the same page, but right now there is zero connection to my current URL’s and their category, so I’m not sure how you’d identify them.

    I do think I’m onto a solution, I will post it up if it works as I think it will (may even have to create a plugin based on it).

    Roger that tspek,

    Looking forward to what you come up with. Love learning new stuff here. Cool on the plugin possibilities as well.

    Cheers! :)

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Inserting Category Slug in URL without Using Permalinks Menu’ is closed to new replies.