Use URL Redirects to redirect a user from the location of an old page to a new one without changing the URL.
In the template system, there are 2 ways to set up redirects on your site.
Option 1: From the admin menu:
- From the admin bar, select 'Configuration' > 'Search and Metadata' > 'URL Redirects'
- Click +Add redirect.
Option 2: From the page you are setting the redirect 'TO':
- From the admin bar, click 'Content'.
- Next to the page you want to redirect users to, click 'Edit'.
- Scroll to the bottom of the page and click "URL redirects" if the tab is not already open.
- Click "+ Add URL redirect to this node".
Screen shot of URL redirects section at the bottom of page:
When filling out the redirect form, keep the following in mind:
- In the "From" field:
- for an old external site: enter the portion of the address AFTER the department name of your old URL. For example, if your old URL is 'www.princeton.edu/mydept/mypage' then only enter 'mypage' in the box. (Note: for this example ignore the URL prefix that is automatically populated (example: mydept.princeton.edu)).
- for the current drupal template site: enter an internal Drupal path (example: "my/old/page")
- In the 'To' field, enter the path of the page where you want to user to be redirected to (usually a page on your new site). This can be an internal Drupal path (example: "my/page" or "node/123") or a complete external URL (like http://example.com/).
- Ensure that the 'Enabled' box is checked.
- Click 'Save'.