You can set up redirect rules for missing or moved pages on your site. Your site’s 404 log will help you discover broken links.
You can specify individual redirects or use a regular expression to match multiple URLs. Here are a few example redirect rules:
From | To | Explanation |
---|---|---|
/apples
|
/oranges
|
Will redirect the URL /apples to the URL
/oranges , assuming there is no post or file with the URL
/apples .
|
\/post\/(.*)
|
/site/$1
|
Will redirect URLs starting with /post to URLs starting
with /site .
|
/example
|
http://example.com
|
Will the URL /example on your site to the external site
example.com .
|
Redirects are evaluated last. This means that a redirect will not resolve if it matches an existing post’s URL, or the path to a file in your folder.