Editing redirects in WebDAV
Any 301 redirects added to your site can be seen in plaintext format in the redirects.txt file, located in your sites root directory. These redirects are structured with a From URL
on the left, a To URL
on the right, and a space seperating them.
301 redirects can be added in the Editor or typed directly into this file.
The redirects.txt file accepts 301 redirects that conform to the following structure:
-
"From" URLs must point from a page on your site.
All "From" URLs must start with a forward slash "/"Example: //courses/contact/about-us/courses/business/business?tag=/business/accounting
-
"To" URLs can point to another page on your site or an external webpage.
"To" URLs can start with a forward slash "/" (for internal redirects) , "http://", or "https://" (for external redirects).Example: //checkout**https://www.ish.com.au/
-
Each 301 redirect must be on a new line.
-
The "From" and "To" URLs in a redirect must be seperated by a space.
"From" and "To" URLs must be on the same line.Examples of valid redirects: /contact/about-us xml /contact/course/ABC123 /courses/**/courses?near=2000 https://www.externalsite.com.au
If an invalid redirect is entered into the redirects.txt file, the file will not be able to be saved.
Updated 5 months ago