Technology Services

Creating a redirect

Often when a site is redesigned, one or more URLs (web addresses) will be different on the new site. When building out a new site, we take efforts to match old URLs to the new, but this is not always possible. For example, a page may initially be found at sitename.duke.edu/about.html, but on the Drupal site the same page is found at sitename.duke.edu/about

In some cases, for example highly-visible pages or pages that are visited very often, it makes sense to set up a redirect so that users who have bookmarked an old URL or come across an old URL via a search are automatically taken to the new URL on your Drupal site. Here are the steps to do so:

  1. Log in to your site
  2. Select 'Configuration > Search and metadata > URL redirects' from the admin toolbar. This will show you the list of redirects already in place. You can edit or delete any of the existing redirects.
  3. Click 'Add redirect' to add a new redirect: enter the old alias (e.g. about.html) in the 'From' field, and the new alias (e.g. about) in the 'To' field, then click 'Save'.

If you do not have this option when logged in, please contact trinitywebsupport@duke.edu.

Alternatively, you can collect all the redirects you wish to add in a spreadsheet that includes all the old aliases in the first column, and all of the new, respective, aliases in the second column. Send this spreadhsheet along with the site/department name to trintiywebsupport@duke.edu and our team can perform a bulk import of the redirects for you.