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 on CloudCannon, create a file called 301.txt
in the root of your website. In this file, you can specify the redirects using this syntax:
You can have wildcards by using *
and external domains will work too. Here’s an example file: