Middlebury

Drupal Redirector

The Drupal Redirector content type can be used to automatically redirect requests from one Drupal page to any other web page address. This is useful for adding a page to your site navigation that sends people to an external website, for example the Giving Form or if you have moved a single page to a new location.

On www.middlebury.edu and www.miis.edu any person who goes to a page with a Redirector who does not have permission to edit it will be automatically sent to the new page. On forms.middlebury.edu and forms.miis.edu any person who goes to a page with a Redirector who is not logged in will be automatically sent to the new page, but people who are logged in will stay on the forms sites.

Creating a Page for the Drupal Redirector

The most common use of Drupal Redirectors is to add links to the left navigation menu to pages that aren't part of your office or department site. To do this, you should first create a new Sub-page, otherwise skip to the next section.

  1. Browse to the page where you would like the link to appear in the left menu and log in.
  2. In the orange Sub-pages section of the Edit Console, click Add Sub-page.
  3. In the Title field, enter the text as you would like it to appear in the menu.
  4. Click Create sub-page.

Creating a Drupal Redirector

Creating a new Drupal Redirector works like creating any other type of content in our Drupal sites.

  1. Browse to the page where you want to add this item and log in.
  2. In the blue Content section of the Edit Console ribbon, click Add.
  3. Select Redirector from the list of content types in the center of the page.
  4. In the Location to redirect to there are two options.
    • If you want to redirect someone to a page on the same Drupal site, click on the Choose button. Doing this will store the internal ID of the destination page, rather than the URL, so your redirector will continue working if the destination page is moved or renamed.
      • Find the destination page in the pop-out Tree Browser and click on its name in the left pane.
      • Click Select in the right pane.
    • If you want to redirect someone to a page on an external website, paste or write the URL of the page in the Destination URL textbox.
  5. Click the Save button.
Powered by MediaWiki