How to create a redirect.json file for GHOST site

How to create a redirect.json file for GHOST site

To make a redirect from the old path or 404 paths of ghost website, there is the only way to do that. Create a file redirect.json then import it to the ghost site.

The content of redirect.json must have a content look like this:

 [{
     "from": "/old-path/",
     "to": "/new-path/",
     "permanent": true
 },
 {
     "from": "/404-path",
     "to": "/",
     "permanent": true
 },
 {
     "from": "/broken-links/",
     "to": "/",
     "permanent": true
 }]

the above is a demo of the redirection template of ghost site. it will send broken links and 404 links homepage. Then save this file upload to the redirection area. Remember the new redirection.json file template will replace the old file. Remember backup the old file before you want to upload the new file.

This article published on :




comments powered by Disqus

Get New Coupon to Email

Looking for new deals, coupon? Subscribe to our new feeds sending to your email

Sign Up
Connect with me