URL Redirects

If you would like to create another URL alias for your page, use a URL Redirect.

A URL alias allows you to create a vanity URL for a specific page. For example, if you had a /contact-us page, you could assign it a URL alias such as "/feedback" and create a URL redirect, so it directs users to the contact page. 

URL redirects can be handled through the ‘URL Redirects’ configuration setting. This setting can be found from the Drupal Admin toolbar by navigating to Configuration > Search and metadata >  URL Redirects. You will be able to see how many times the URL redirect is visited (Count) and the last time a visit was made to the URL Redirect (Last Accessed).

Add a New URL Redirect

  1. Once logged in, from the Drupal Admin toolbar navigate to Configuration > Search and metadata > URL Redirects > Add Redirect.
  2. Input the following fields:
    • Path: Enter the custom URL alias, internal Drupal path or path alias to redirect from. (eg. pemrec).
    • To: Enter an internal Drupal path, path alias, or complete external URL (like http://example.com/) to redirect to. Use <front> to redirect to the front page. Drupal will automatically change the path alias to an internal Drupal path once saved.
  3. Click the “Save” button.

Set Up a Redirect While Editing a Page

  1. Once logged in, click on Content from the top level of the Drupal Admin toolbar.
  2. Find the page you are looking for and click on ‘Edit’ from the right-hand column.
  3. At the bottom of the edit screen, look for the URL Redirects tab
  4. Click on “Add URL redirect to this node
  5. Input the following fields:
    • From: Enter the custom URL alias, internal Drupal path or path alias to redirect from. (Same as above)
    • To: This field will have already been filled in with the proper internal Drupal path.
  6. Click the “Save” button.

Once saved, the URL in the “From” field will redirect to the URL in the “To” field.

Editing an Existing URL Redirect

  1. Once logged in, click on Configuration > Search and metadata > URL Redirects from the top level of the Drupal Admin toolbar.
  2. Find the URL Redirect you are looking for and click on ‘Edit’ from the right-hand column.
  3. To delete a URL Redirect:
    • Click on the checkboxes on the left-hand column to select the URL Redirects to you wish to delete.
    • Once you have selected all the URL Redirects that you wish to delete, click on the “Update” button that appears above the list of URL Redirects.

 


 

Our team at Upanup is always striving to make this guide better and more accessible for our clients. We'd love to hear from you, so we can continue to improve this guide. 

Feedback