Redirects

12/13/16: In admin mode, the Drupal template system requires the HTTPS protocol for all administration pages. At this time, the Drupal template system does not require the HTTPS protocol for websites and pages when published. This security improvement is being planned for implementation and in the near future, all HTTP references will be updated with relative links to the more secure HTTPS protocol.


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 Configuration Module:

  1. From the admin bar, select 'Configuration' > 'URL Redirects' under the 'Search and Metadata' section.
  2. Click +Add redirect.
  3. 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: mydept.princeton.edu/mypage), a drupal path alias (example: node/26).
  4. 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: mydept.princeton.edu/mypage), a drupal path alias (example: node/26), or a complete external URL (like http://example.com/).
  5. Ensure that the 'Enabled' box is checked.
  6. Click 'Save'.

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".
  5. In the "From" field :
    1. for an old external site: enter the portion of the url 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: mydept.princeton.edu/mypage), a drupal path alias (example: node/26).
  6. Click "Save".

Screen shot of URL redirects at bottom of page:

Redirects

You can also access URL redirects via Configuration > Search and metadata > URL redirects.