A redirect automatically forwards a website’s visitors from one URL (web address) to another.
Redirects help a website’s visitors get to the right place when a link to a page — its URL — has changed or is shortened.
Redirects from your site’s domain
You can set up redirects from any URL on your site’s domain. For example, you can redirect https://yoursite.wustl.edu/outdated-page/ to https://yoursite.wustl.edu/new-page/ or to https://anothersite.wustl.edu/current-page/.
- From your site’s dashboard, go to Settings > 301 Redirects in the left menu.
- Under Request, enter the relative URL of the page you’re redirecting traffic from. This is the link to the original page. The relative URL is the path after the site domain, including the forward slash (/). For example: /old-page/.
- Under Destination, enter the full URL of the page you’re redirecting traffic to. The full URL includes the site domain. For example: https://mysite.wustl.edu/page-name/.
- Click the Add New button.
- Access the Redirection plugin
From the WordPress dashboard, click Tools > Redirection in the left menu. - Change global settings
Adjusting a few global settings will make your life easier with every redirect you set! You only need to change these settings once.- Click Options.
- Find Default URL settings, and check both settings to enable them: Case insensitive matches and Ignore trailing slashes.
- Find Default query matching, and select Ignore all query parameters.
- Click Update.
- Set individual redirects
- On the main Redirects tab, click Add New.
- Complete these fields:
- Source URL: The relative URL of the page you’re redirecting traffic from, starting with a forward slash /. This is the original link of the page that’s moving, or the vanity URL. The relative URL is everything after .edu.
Example from yoursite.wustl.edu: /forms (truncated from https://yoursite.wustl.edu/forms)
- Target URL: New page address (the URL where traffic is redirected), starting with a forward slash / (everything after .edu)
Example from yoursite.wustl.edu: /patients/covid-19-patient-guidelines/patient-forms/ - To the right of the Source URL, select Ignore Case and Ignore Slash if they are not already selected.
- For both fields, start with a forward slash / and enter the part of the URL following .edu.
- Source URL: The relative URL of the page you’re redirecting traffic from, starting with a forward slash /. This is the original link of the page that’s moving, or the vanity URL. The relative URL is everything after .edu.
- Click Add Redirect.
- Test your redirect by going to the source URL and making sure it redirects to the page correctly.
- Or, bulk import many redirects at once
- The bulk import option is particularly useful if you are replacing a website and have dozens or even hundreds of redirects to set at once.
- In a spreadsheet, list the source/original URL in Column A, and the corresponding target URL in Column B. Do not include column labels or additional columns.
- The source and target URLs should be truncated. That is, the domain should be removed so the URL starts with the forward slash (see examples in section above). Pro tip! If your spreadsheet lists the full URL for each page, you can truncate the URLs en masse by running a FIND and REPLACE. FIND should be the domain name without the trailing slash (eg, https://yoursite.wustl.edu). Leave REPLACE blank.
- Save the file as a CSV.
- Navigate to your site’s Redirection page and click Import/Export at the top.
- In the Import section, add your file and click Upload.
- Test your redirects! If you’ve set too many redirects to test all of them individually, run a spot check. You can also contact WashU Medicine Marketing & Communications to run a report that will help identify any issues.
If you would like to apply advanced options, visit the Redirection website for additional supp
After you’ve completed these steps, you may need to clear your browser cache in order to see the redirect working.
Redirects from another domain
WashU IT must set up most redirects from domains other than your site’s. For example, you would need help from IT to set up a redirect from https://anothersite.wustl.edu/old-page/ to https://yoursite.wustl.edu/new-page/, or from https://yourolddomain.wustl.edu/ to https://yoursite.wustl.edu/. For redirect assistance from IT, complete the subdomain/redirect request form in ServiceNow.