Available with CloudCannon hosting.
When you change the structure of your website, you should redirect the old URLs to the new pages.
To set up 301 redirects:
- Create a file called
301.txtat the root of your site
- Specify the redirects in this file using the following syntax
CloudCannon supports redirects to external domains and wildcard matching with
*. Here’s an example file:
You can redirect to, but not from a URL fragment (e.g.
#example-heading). The fragment is not passed to the server so cannot be processed by the redirect.