Hosting / General
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:
Redirects will only occur if the redirect-from page/location no longer exists within the site. If the page/location still exists within your site, this will be served instead of performing a redirect.
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.