Ghost Blog Redirect Configuration for WordPress Migration
Table of Contents
In my earlier post Lighttpd url.redirect and changing WordPress permalink structure, I talk about the issue when permalink structure is changed.
When migrating from WordPress to Ghost, the permalink structure is changed again, from
Ghost development team provided a perfect and simple solution in version 0.11.4, the
redirects.json. The official document is here.
redirects.json need to be placed in
redirects.json for my site is as follow
The above will take care of the following redirects:
- https://johnsiu.com/index.php/YYYY/MM/DD/<post>/ to https://johnsiu.com/<post>/
- https://johnsiu.com/index.php/catagory/<tag>/ to https://johnsiu.com/tag/<tag>/
- https://johnsiu.com/index.php/<post>/ to https://johnsiu.com/<post>/