# (Superseded) Redirect a category using permalink rules

**URL:** https://meta.discourse.org/t/superseded-redirect-a-category-using-permalink-rules/43380
**Category:** Site Management
**Tags:** how-to
**Created:** [April 28, 2016, 1:06pm UTC](https://meta.discourse.org/t/superseded-redirect-a-category-using-permalink-rules/43380 "2016-04-28T13:06:51Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![erlend\_sh](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/erlend_sh/32/119475_2.png) [@erlend\_sh](https://meta.discourse.org/u/erlend_sh)
#### Post date: [April 28, 2016, 1:06pm UTC](https://meta.discourse.org/t/superseded-redirect-a-category-using-permalink-rules/43380/1 "2016-04-28T13:06:52Z")

</div>

> #### ⚠ 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.

1. Go to /admin/customize/permalinks:

 ![image](https://global.discourse-cdn.com/meta/original/4X/8/8/1/8817a37ec8573471c503ccdc9544712b757de6f4.png)

Here you should enter the partial URL of the category slug that you’re redirecting, in this case `c/school`

1. Change the middle drop-down to Category ID

2. 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.

3. Lastly, enter the ID - in this case 10 - of the category. Before clicking “Add” your form should look like this:

---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [April 28, 2016, 8:43pm UTC](https://meta.discourse.org/t/superseded-redirect-a-category-using-permalink-rules/43380/2 "2016-04-28T20:43:44Z")

</div>

Isn’t this process automatic on renaming a category after @techapj’s recent change?

---

<div class="post-metadata">

### Author: ![erlend\_sh](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/erlend_sh/32/119475_2.png) [@erlend\_sh](https://meta.discourse.org/u/erlend_sh)
#### Post date: [May 2, 2016, 11:05am UTC](https://meta.discourse.org/t/superseded-redirect-a-category-using-permalink-rules/43380/3 "2016-05-02T11:05:28Z")

</div>

I see! The change must not have been deployed yet to Try when I tested it. I tried again today and it does indeed happen automatically, thanks @techAPJ ❤

I’ve updated the howto accordingly.

---

<div class="post-metadata">

### Author: ![Fer\_Cazares](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/fer_cazares/32/183390_2.png) [@Fer\_Cazares](https://meta.discourse.org/u/Fer_Cazares)
#### Post date: [July 6, 2020, 3:06pm UTC](https://meta.discourse.org/t/superseded-redirect-a-category-using-permalink-rules/43380/4 "2020-07-06T15:06:22Z")

</div>

For anyone looking for a way to do this, check this:

> [@Redirect Category to External URL](https://meta.discourse.org/t/redirect-category-to-external-url/85691/13):
>
> Is there some specific version of the API I should be using for this?

---

<div class="post-metadata">

### Author: ![JammyDodger](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jammydodger/32/254611_2.png) [@JammyDodger](https://meta.discourse.org/u/JammyDodger)
#### Post date: [September 22, 2023, 6:17pm UTC](https://meta.discourse.org/t/superseded-redirect-a-category-using-permalink-rules/43380/5 "2023-09-22T18:17:19Z")

</div>



---

<div class="post-metadata">

### Author: ![JammyDodger](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jammydodger/32/254611_2.png) [@JammyDodger](https://meta.discourse.org/u/JammyDodger)
#### Post date: [June 1, 2024, 7:19pm UTC](https://meta.discourse.org/t/superseded-redirect-a-category-using-permalink-rules/43380/6 "2024-06-01T19:19:50Z")

</div>


