Redirects: Managing redirects using the uOttawa Redirects module

The following tutorial will explain how to create and manage redirects on your site using the uOttawa Redirects module. Note that this module only allows you to create redirects originating from your own site. So if you need specific vanity redirects outside of your site, you will need to open a Service Desk request.

For example:

Redirect origin Redirect target Can be handled by the module?
http://www.uottawa.ca/my-site/abc http://www.uottawa.ca/my-site/def Yes
http://www.uottawa.ca/my-site/abc http://www.uottawa.ca/other-site/abc Yes
http://www.uottawa.ca/other-site/abc http://www.uottawa.ca/my-site/abc No

Prerequisites

  • You need to be an administrator on your site to be able to enable the module and set the proper permissions. If you are not an administrator, you will need to contact your site's primary webmaster or open a Service Desk request to ask that a member from the Web Services team enable the module and its permissions for you.
  • You will need webmaster-level access or higher to create and manage redirects after the module has been enabled.

1. Enable the uOttawa Redirects module (administrators only)

  1. From the administrative toolbar, navigate to Modules.
  2. Search for the module called "uOttawa Redirects", enable it, and then click on the button Save configuration.
  3. Once the module is activated, navigate to People. At the top-right of the page, click on the tab Permissions.
  4. Search for the permission "Administer URL redirections" and enable it as needed for the roles Webmaster, Webadmin and Administrator.
  5. Once done, scroll to the bottom and click on the button Save permissions.

2. Creating and managing redirects

  1. If the permissions are set correctly, navigate to Configuration.
  2. Under Search and Metadata, click on URL Redirects.
  3. From here, you will see a list of the redirects on your site that are handled by this module. By default, the list should be blank. Click on the link "Add redirect" at the top of the page to create your first redirect.
  4. On the following page, you will need to fill out the following fields:
    1. From: This is the site path that you want to redirect to another page. This path must be within your own site; it does not need to be an existing page.
    2. To: This is the URL that you want to redirect your users to. This URL can be internal or external to your site.
    3. Language: Set the languages to which you want to apply the path redirect. By default, the options are "All languages", "English" and "French".
    4. Redirect status (advanced options): Set the specific status code of the redirect. Leave this to "301" for a permanent redirect.
  5. Once done, click on the button Save to create the redirect. You can then test your redirect by going to your site and appending the path you entered in the "From" field earlier (make sure you are in the right language if the redirect does not apply to all languages).
» Submit feedback
    Types: 
  • Tutorials
Back to top