This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Last revision Both sides next revision | ||
redirects [2017/06/20 15:19] brittany [Creating Redirects] |
redirects [2020/04/27 20:29] corey http -> https |
||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ====== Redirecting pages ====== | ||
+ | <html><iframe width="960" height="540" src="https://www.youtube.com/embed/CLsRpp1P4BQ" frameborder="0" allowfullscreen></iframe></html> | ||
+ | ===== Usage Example ===== | ||
+ | |||
+ | Redirects are used to automatically send a user's browser from one URL to another. For example, if you had a page at yoursite.com/example-old-url.htm, then decide to changed it to yoursite.com/new-url/, but still want your users to be able to find the page at its old URL, you would create a redirect like this: | ||
+ | |||
+ | {{::redirects1.png?700|}} | ||
+ | |||
+ | ===== Finding Redirects ===== | ||
+ | |||
+ | {{::redirects2.png?500|}} | ||
+ | |||
+ | The click on one of the redirects in the list to inspect, edit, or delete it. | ||
+ | |||
+ | ===== Creating Redirects ===== | ||
+ | |||
+ | {{::redirects3.png?500|}} | ||
+ | |||
+ | Then fill in the fields and click the //Save// button at the bottom when you're finished. | ||
+ | ===== Other notes on redirects ===== | ||
+ | |||
+ | If you leave the //Redirect to// field blank, any requests to the path specified in //Redirect from// get a HTTP 410 Gone response, which means "The requested resource is no longer available at the server and no forwarding address is known." | ||
+ | |||
+ | One common pitfall with redirects is the accidental creation of circular chains of redirects. For example yoursite.com/a redirects to yoursite.com/b which redirect to yoursite.com/c which redirects back to yoursite.com/a. These sorts of infinite redirect loops should be avoided for obvious reasons. |