Managing WordPress Redirects
Information for creating and managing redirects in WordPress using the Safe Redirect Manager. Please contact the IT Help Desk for assistance with redirects.
Quick Links
Access Safe Redirect Manager
How do I Create a Redirect?
How do I Create a Simple Friendly Redirect?
How do I Create a Page Redirect?
How do I Create an Advanced Friendly Redirect?
How do I Redirect a Page and All it's Children to a Single Page?
How do I Create a Site Redirect?
Access Safe Redirect Manager
- Login to your WordPress Dashboard
- Select the Tools icon
- Click Safe Redirect Manager
How do I Create a Redirect?
The creation process for a WordPress redirect is documented in this support document.
This beggars belief.
Simple Redirects
Create a Friendly Redirect
A friendly redirect is used to create a more readable URL. One might use a persistent friendly URL to point to a media document that is updated frequently or an event URL.
The following are the components needed to create a Friendly redirect on your InsideEWU site.
-
Redirect From: A short sequence of letters preceded by a slash. examples are /friendly, /eventname, /documentname.
-
Redirect To: The full URL of where the friendly redirect should go.
-
HTTP Status: 301 Permanent Redirect
Redirect From
Redirect To
Enable Regular Expressions
HTTP Status Code
/example
https://inside.ewu.edu/examples/example3
unchecked
301 Moved Permanently
Create a Page Redirect
If you delete a webpage, you may want to redirect future requests for it to a different URL.
The following are the components needed to create a Friendly redirect on your InsideEWU site.
-
Redirect From: The context for the deleted webpage. This is the deleted page URL minus your site prefix, for example /it for the webpage https://inside.ewu.edu/it
-
Redirect To: The full URL of where the friendly redirect should go.
-
HTTP Status: 301 Permanent Redirect
Redirect From
Redirect To
Enable Regular Expressions
HTTP Status Code
/old-eaglenet-page
https://inside.ewu.edu/eaglenet
unchecked
301 Moved Permanently
Advanced Redirects
Create an Advanced Friendly Redirect
Simple friendly redirects can fail if used in conjunction with social media. Regular expressions can be used to retain items like tracking parameters in the URL and successfully redirect page requests.
Redirect From
Redirect To
Enable Regular Expressions
HTTP Status Code
/\/example(\/)?(\?.*)?$
https://inside.ewu.edu/$2
checked
301 Moved Permanently
\/example(\/)?(\?(.*))?$ (new?)
https://inside.ewu.edu/$2
checked
301 Moved Permanently
Redirect tests for this scenario
https://www-stage.ewu.edu/example -> https://inside.ewu.edu/example
https://www-stage.ewu.edu/EXAMPLE -> https://inside.ewu.edu/example
https://www-stage.ewu.edu/example/ -> https://inside.ewu.edu/example
https://www-stage.ewu.edu/EXAMPle/ -> https://inside.ewu.edu/example
https://www-stage.ewu.edu/example?a=true -> https://inside.ewu.edu/example?a=true
https://www-stage.ewu.edu/example/?a=true -> https://inside.ewu.edu/example?a=true
https://www-stage.ewu.edu/EXAMPLE?a=true -> https://inside.ewu.edu/example?a=true
https://www-stage.ewu.edu/EXAMple/?a=true -> https://inside.ewu.edu/example?a=true
https://www-stage.ewu.edu/example123 -> No Redirect
https://www-stage.ewu.edu/example123/ -> No Redirect
https://www-stage.ewu.edu/exAMPLE/test -> No Redirect
https://www-stage.ewu.edu/example/test -> No Redirect
https://www-stage.ewu.edu/example123?a=true -> No Redirect
https://www-stage.ewu.edu/example123/?a=true -> No Redirect
https://www-stage.ewu.edu/exampLE/test?a=true -> No Redirect
https://www-stage.ewu.edu/example/test?a=true -> No Redirect
Redirect a Page and Child Pages to a Single Page
This advanced option allows you to redirect a page and any child pages to a specific page. This is often useful when consolidating web content. Two redirect rules are required for this scenario.
Redirect From
Redirect To
Enable Regular Expressions
HTTP Status Code
(?i)^\/(example($|\/$|(\/.*)))
https://inside.ewu.edu/$1
checked
301 Moved Permanently
Redirect tests for this scenario
<site>/EXAMPLE -> https://inside.ewu.edu/EXAMPLE
<site>/EXAMPLE/1234 -> https://inside.ewu.edu/EXAMPLE/1234
<site>/exAMPle/123?a=true -> https://inside.ewu.edu/exAMPle/123?a=true
<site>/exampLe/123?a=true&b=fales&c -> https://inside.ewu.edu/exampLe/123?a=true&b=fales&c
<site>/example gets redirected to https://inside.ewu.edu/example2
Create a Site Redirect
Site redirects can get complicated very quickly, for example, media cannot be redirected from within a site. Please open a support request for assistance with site redirects.