Skip to main content
Campus Resources

Add / Edit a URL Redirect

URL Redirects allow content to be accessed from additional URLs other than the main one connected to the piece of content. Redirect users from old URLs to new URLs, or from non-existent URLs to existing ones. The URL desired should not previously have been used on the site.

This can be useful for a variety of purposes, such as:

  • Redirecting users from old pages that have been moved or deleted to the new or replacement pages.
  • Redirecting users who have bookmarked an old URL to the updated version of the page.
  • Redirecting users who have typed in the wrong URL to the correct page.
URL redirects
URL Redirects for content

The URL redirects feature allows you to specify a custom URL for a piece of content, which will redirect users to the content when accessed. This can be useful if you want to use a shorter or more memorable URL for the content, or if you want to redirect users from an old URL to a new URL.

To use the URL redirects feature when editing content, follow these steps:

  1. Click on the URL redirects tab in the content editor.
  2. Click on Add URL redirect to add additional redirect to the content.
  3. Enter the custom URL that you want to use for the content in the Redirect from field.
  4. If desired, select the Redirect status option to specify the type of redirect that should be used. The options include 301 Moved Permanently, 302 Found, and 303 See Other.
  5. Click the Save button to save your changes.

Note:

  • Clicking on Add URL redirect will open a new tab.
  • Click on Edit or Delete for the specific redirect will not open a new tab and all changes not saved will be lost.

Now, when users access the custom URL that you specified, they will be automatically redirected to the content. The URL redirects feature can be useful for maintaining the integrity of your site's URLs and for making it easier for users to access your content.

To manage URL redirects, you will need to have the appropriate permissions to administer the module. If you have these permissions, you can manage redirects by following these steps:

  1. Click on the Configuration link in the main menu, and then click on the Redirect link under the Search and metadata section. This will take you to the Redirects page, which lists all the redirects that have been created on your site.
  2. To add a new redirect, click the Add redirect button. This will take you to the Add redirect page, where you can enter the details for the new redirect. You will need to specify the following:
    • Source URL - The old URL that you want to redirect users from.
    • Redirect URL - The new URL that you want to redirect users to. This can be an internal path (e.g., /node/1) or an external URL (e.g., https://example.com).
    • Redirect status - The HTTP status code to use for the redirect. The most common status codes are "301 (Moved Permanently)" and "302 (Found)", but you can also choose from other status codes if needed.
    • Redirect language - The language to use for the redirect. This is only relevant if you are using multilingual features on your site.
  3. Click the Save button to save the new redirect. The redirect will now be active and will redirect users from the old URL to the new URL whenever they visit the old URL.

To edit or delete an existing redirect, click the Edit or Delete link next to the redirect on the Redirects page. This will take you to the Edit redirect page or the delete confirmation page, respectively, where you can make the necessary changes or confirm the deletion.

It's important to note that the Redirect module only works for internal URLs. If you want to redirect users from external URLs, you will need to use a different method, such as setting up a server-level redirect or using a third-party service.