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:
- Creating a redirect via the page editor
This is good for redirecting to an item that is already on your site. - Creating a redirect via the site administration
This is good for redirecting to an external site.
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.
- First, go to the page you want the redirect to go to.
- Then on the overview tab, find the URL redirects in the configuration section at the bottom.
- Click on the link that says Add URL redirect to this content.
- You'll be redirected to a URL redirects configuration page.
- In the From field, enter the path after your main domain that you want to redirect.
- Example: training
- In the To field, it should automatically have the node number entered for the page you were editing.
- Example: node/123
- 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.
- First, using the admin bar at the top, go to the Configuration tab.
- Then under the Search and Metadata heading, click on the URL Redirects link.
- Here you'll find all the redirects to every node on your site.
- To edit one, click Edit under the Operations column for the redirect desired.
- To create a new redirect, click the Add redirect link at the top of the page.
- You'll be redirected to a URL redirects configuration page.
- In the From field, enter the path after your main domain that you want to redirect.
- Example: training
- In the To field, you need to enter the node number for the page you want the From field to redirect to.
- Example: node/123
- You can find the node number by looking at the path when editing.
- Example: https://www.ws.cumc.columbia.edu/node/132/edit
- Once completed, click save.