Static HTML Page Redirects

The redirects.json file allows you to define a map of routes with what routes they should redirect to, e.g:

    "/creatorkit": "/creatorkit/",
    "/vue": "/vue/"

When prerendering this will generate a *.html page for each mapping containing a meta refresh to perform a client-side redirect to the new route which will work in all static file hosts and CDNs like GitHub Pages CDN.

Where it will redirect invalid routes like /vue and /creatorkit to their appropriate /vue/ and /creatorkit/ paths.

Redirects in AWS S3

Alternatively if you deploy your static site to a smarter static file host like an AWS S3 bucket you can perform these redirects on the server by defining them in Custom Redirection Rules.