# Redirects question coming from WordPress

**URL:** <https://forum.ghost.org/t/redirects-question-coming-from-wordpress/51843>\
**Category:** Routing\
**Created:** [October 22, 2024, 1:31am UTC](https://forum.ghost.org/t/redirects-question-coming-from-wordpress/51843 "2024-10-22T01:31:46Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![jaketheo](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/jaketheo/32/31448_2.png) [@jaketheo](https://forum.ghost.org/u/jaketheo)\
**Post date:** [October 22, 2024, 1:31am UTC](https://forum.ghost.org/t/redirects-question-coming-from-wordpress/51843/1 "2024-10-22T01:31:46Z")

</div>

Hey Ghosties

I searched the forum and couldn’t find an answer to this.

On this support page:

> **[Implementing redirects in Ghost](https://ghost.org/tutorials/implementing-redirects/)**
>
> Avoid broken links by redirecting old URLs to new ones. In this tutorial, learn everything you need to know about Ghost's redirect process.

It mentions when not to use redirects.yaml. If I have a few 301 redirections, I still use the redirects.yaml method and not through DNS?

Fortunately, my posts on WordPress are already [siteurlexample.com/post-title-here](http://siteurlexample.com/post-title-here) so these should just carry over when I point the domain to Ghost, is that right?

The part I’m stuck on are other URL differences between WordPress and Ghost. How do I redirect all categories to tags? For example, how do I redirect [siteurlexample.com/category/news](http://siteurlexample.com/category/news) to [siteurlexample.com/tag/news](http://siteurlexample.com/tag/news) to maintain PageRank? And are there other examples aside from categories that I need 301 redirects for?

Thanks for reading!

---

<div class="post-metadata">

**Author:** ![digitalresidue](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/digitalresidue/32/30339_2.png) [@digitalresidue](https://forum.ghost.org/u/digitalresidue)\
**Post date:** [October 22, 2024, 1:47am UTC](https://forum.ghost.org/t/redirects-question-coming-from-wordpress/51843/2 "2024-10-22T01:47:40Z")

</div>

I doubt your categories have any “ranking” but yes then you would redirect with redirects.yaml

As to categories if you have made links in content to a category page then 100% you would want to redirect until you fix the internal links.

---

<div class="post-metadata">

**Author:** ![jonhickman](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/jonhickman/32/33102_2.png) [@jonhickman](https://forum.ghost.org/u/jonhickman)\
**Post date:** [October 22, 2024, 9:56am UTC](https://forum.ghost.org/t/redirects-question-coming-from-wordpress/51843/3 "2024-10-22T09:56:19Z")

</div>

This regex will catch every /category/slug request and make a permanent redirect to /tag/slug. If you want to test it first, move the rule to “302” (temporary)

```auto
301:
    ^\/category\/(.*): /tag/$1

302:

```
