Redirects question coming from WordPress

Hey Ghosties

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

On this support page:

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 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 to siteurlexample.com/tag/news to maintain PageRank? And are there other examples aside from categories that I need 301 redirects for?

Thanks for reading!

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.

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)

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

302:
4 Likes