How to configure redirects in cPanel
This article describes how to use cPanel to configure a web page to redirect to a different web page.Table of Contents
- About redirects
- Adding a redirect
- Removing a redirect
About redirects
When a web server diverts a visitor from one webpage to another, this is known as a redirection. Redirecting to lengthier URLs with shorter, more memorable URLs is a popular usage for redirection. Redirecting users from outdated pages on a website to more recent, updated pages is another use for it.
You can use cPanel to redirect multiple web pages, and you can specify whether redirections are temporary or permanent.
Adding a redirect
To add a redirect, follow these steps:
- Log in to cPanel.If you do not know how to log in to your cPanel account, please see this article.
- Open the Redirects tool:
- If you are using the Jupiter theme, on the Tools page, in the Domains section, click Redirects:
- If you are using the Paper Lantern theme, in the DOMAINS section of the cPanel home page, click Redirects:
- If you are using the Jupiter theme, on the Tools page, in the Domains section, click Redirects:
- Under Add Redirect, select the redirection type:
- To specify a permanent redirection, select Permanent (301).
- To specify a temporary redirection, select Temporary (302).301 and 302 refer to the HTTP status codes that the server sends to a web browser.
- Select the domain, and then type the web page that you want to redirect.
- In the Redirects to text box, type the destination web page.
You can redirect the web page to another web page on your web site, or to a web page on a completely different web site. - Under www. redirection, select the option you want for redirecting domains that include www.
- To enable wild card redirecting, select the Wild Card Redirect check box.
When wild card redirects are enabled, all files in a directory are redirected to their corresponding filenames in the redirected directory. This is an easy way to redirect an entire directory of files at once. - Click Add. cPanel adds the redirect.
Removing a redirect
You can remove a redirect when you no longer want to redirect a page to another web page. However, you cannot modify a redirect. If you need to modify a redirect, delete it and then create a new one.
To remove a redirect, follow these steps:
- Log in to cPanel.If you do not know how to log in to your cPanel account, please see this article.
- Open the Redirects tool:
- If you are using the Jupiter theme, on the Tools page, in the Domains section, click Redirects:
- If you are using the Paper Lantern theme, in the DOMAINS section of the cPanel home page, click Redirects:
- If you are using the Jupiter theme, on the Tools page, in the Domains section, click Redirects:
- Under Current Redirects, locate the redirect that you want to remove, and then click Delete.
- Click Remove Redirect to confirm the deletion. cPanel removes the redirect.