Please Note
Discourse now automatically redirects renamed categories. I will leave this HowTo up for the time being to cover any eventual edge cases that the automatic redirect doesn’t take into account.
Say you’ve renamed the category /c/school
to /c/education
and you’d like to make sure all old links that point to https://forum.example.com/c/school
will now redirect to https://forum.example.com/c/education
. Here’s what you do.
- Go to /admin/customize/permalinks:
Here you should enter the partial URL of the category slug that you’re redirecting, in this case c/school
-
Change the middle drop-down to Category ID
-
Now, in a separate window, go to your renamed
/c/education
category and append.json
to its URL, so that it looks like this:https://forum.example.com/c/education.json
. On this page, search for “category_id”. You’re gonna want to copy & paste this number into your “Category ID” field. -
Lastly, enter the ID - in this case 10 - of the category. Before clicking “Add” your form should look like this: