Creating a Redirect

What is a Redirect?

A redirect gives you the ability to redirect traffic to a specific path or URL to go to a node on your site that has a different path or URL.

Example:

The following URL:

Redirects to this URL:

How do you implement a redirect?

The CUIMC Distribution has two different ways you can manage and create redirects:

  1. Creating a redirect via the page editor
    This is good for redirecting  a URL to an item that is already on your site.
  2. Creating a redirect via the site administration
    This is good for redirecting a URL to another site URL.

Creating a redirect via the page editor

In this section, we will go over how to create a redirect using the URL redirects section via the page editor.

  1. First, go to the page you want the redirect to go to.
  2. Then on the overview tab, find the URL redirects in the configuration section at the bottom.
  3. Click on the link that says Add URL redirect to this content.
  4. You'll be redirected to a URL redirects configuration page.
  5. In the From field, enter the path after your main domain that you want to redirect.
    1. Example: training
  6. In the To field, it should automatically have the node number entered for the page you were editing.
    1. Example: node/123
  7. Once completed, click save.

Now all traffic going through the path you entered in the From field, will go to the node you were editing.

Creating a redirect via the site administration

In this section, we will go over how to create a redirect using the URL redirects configuration section under site administration.

  1. First, using the admin bar at the top, go to the Configuration tab.
  2. Then under the Search and Metadata heading, click on the URL Redirects link.
  3. Here you'll find all the redirects to every node on your site.
  4. To edit one, click Edit under the Operations column for the redirect desired.
  5. To create a new redirect, click the Add redirect link at the top of the page.
  6. You'll be redirected to a URL redirects configuration page.
  7. In the From field, enter the path after your main domain that you want to redirect.
    1. Example: training
  8. In the To field, you need to enter the node number for the page you want the From field to redirect to.
    1. Example: node/123
    2. You can find the node number by looking at the path when editing.
      1. Example: https://www.ws.cumc.columbia.edu/node/132/edit
  9. Once completed, click save.