Redirects

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:

  1. From the admin bar, select 'Configuration' > 'Search and Metadata' > 'URL Redirects'
  2. Click +Add redirect.

Option 2: From the page you are setting the redirect 'TO':

  1. From the admin bar, click 'Content'.
  2. Next to the page you want to redirect users to, click 'Edit'.
  3. Scroll to the bottom of the page and click "URL redirects" if the tab is not already open.
  4. Click "+ Add URL redirect to this node".

Screen shot of URL redirects section at the bottom of page:

Redirects

When filling out the redirect form, keep the following in mind:

  1. In the "From" field:
    1. 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)).
    2. for the current drupal template site: enter an internal Drupal path (example: "my/old/page")
  2. 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/).
  3. Ensure that the 'Enabled' box is checked.
  4. Click 'Save'.