Requirements:
The Redirection plugin supports simple one-to-one redirects on Shifter.
Redirect Examples
The following are examples of redirects that can be configured using the Redirection plugin.
A.
Redirect to Another Website
- Source URL:
https://www.example.com/abc/ - Target URL:
https://www.example.org/
B.
Redirect to Another Post or Page
- Source URL:
https://www.example.com/abc/ - Target URL:
https://www.example.com/def/
C. Removing the Date from a URL
- Source URL:
https://www.example.com/2018/01/01/abc/ - Target URL:
https://www.example.com/abc/
You may need to change the permalink structure to “Post Name.”
Advanced Redirects Not Supported by Shifter
Shifter does not support the following advanced redirects:
- Values without a trailing slash
- Regular expressions
- Pattern matching
- Pass-through
- Random posts
- Redirects from the root directory to another directory, post, or page (a single
/in the source URL is not allowed) - Detection of 404 Not Found errors
Examples of Unsupported Redirects
The following are examples of redirects not supported by Shifter.
Redirect fromhttp://www.example.com/foo
tohttp://www.example.com/barRedirect fromhttp://www.example.com/fo.*/
tohttp://www.example.com/bar/Redirect from the/ab.?/directory to the
/def/- directory
Redirecting users based on their browser (e.g., redirecting user agents using Safari fromhttp://www.example.com/foo/
tohttp://www.example.com/bar/)
Note
All redirects are converted to meta http-equiv="Refresh"
, so HTTP 301/302 responses are not returned to the browser.