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:
old_url new_url
You can have wildcards by using *
and external domains will work too. Here’s an example file:
/old_file.html /new_file.html
/category/* /new_category
/page/ http://google.com