Redirects
You can set up redirects 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 redirects:
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 .
|
Why isn’t my redirect working?
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.