URL Redirects


Adding a redirect will ensure that if visitors go to an old link, they will be automatically redirected to a new page. You can add redirects for paths from an old website on the redirects administration page. It can also be helpful to add a redirect from an old path on your current website if you've since deleted the page (in case anyone has bookmarked that page to visit later).

Important Notes

  • Do NOT redirect the home page of your website to another page on your site or to an external website (i.e., do not put <front> or "home" in the "from" field when adding a redirect). You and other Builders/Editors/Contributors will not be able to log in to your website (so you won't be able to undo the redirect), and site visitors will not be able to get to your website and/or home page.
  • URLs with spaces (indicated by a "%20", which will automatically be added in the URL address bar to fill the empty space) and other non-alphanumeric characters cannot be redirected. 
  • If you would like to redirect another domain (a domain that's not your primary URL) to your site, please contact web-platform@berkeley.edu, as this process will require additional coordination/configuration. 

Add Redirects

From the Dashboard, select "Administer URL redirects" from the "URL Administration" section, and click "Add redirect".

Enter the appropriate paths in the from (old path) and to (new path) fields and click "Save" to save the redirect. For both the "From" and "To" fields, add everything from the URL that comes AFTER the .edu/.

Pages on your site can also be redirected to an external site if need be (if content on your site has been moved to another site, for example). To do this, follow the same instructions as above for the "From" field, and put the external link in the "To" field.

Notes about adding redirects to/from attachments (Word, PDF, Excel, etc.) 

  • When adding a redirect from an old attachment to a new one, be sure to delete the old file, or else the redirect won't work. If the old document still exists in the file system, the server will display it before Drupal gets involved to redirect to the new attachment URL.
  • The redirect function in Open Berkeley does not work if you're trying to redirect TO anything with spaces in the file name. It will work if you redirect FROM something with spaces in the file name. (This is true of any Drupal site using the Redirect module.) It's best to use only alphanumeric characters, plus the dash, dot, and underscore, for names of files that will be uploaded to you website (see Add Attachments in the Editors Guide).

Automatic redirects

On live sites (and on test sites after live sites have launched), automatic redirects are turned on. If automatic aliases are turned on, this means that if you change the name of a page, a redirect will be created for the previous path (the URL alias) to point to the new path. This helps protect against broken links (especially if visitors have bookmarked the previous URLs).

For example, if you have a page called "About Us," the automatic URL alias will be http://[yoursite].berkeley.edu/about-us. If you change the page title to "About" instead, the URL alias will update to http://[yoursite].berkeley.edu/about, and a redirect will be created to point http://[yoursite].berkeley.edu/about-us to the new http://[yoursite].berkeley.edu/about.

At any time, you can view the redirects created for individual pages when editing a page and navigating to the "Redirects" section. From there, you can edit or delete the redirects as needed.

You can manage all redirects from your Site Builder Dashboard.