For cPanel & WHM 11.46
(Home >> Domains >> Redirects)
Overview
The Redirect feature allows you to send all of the users that access a domain or particular page to a different URL.
For example, if you have a long URL that you can not shorten, you can use the Redirect feature to add a redirect from a short URL to the long URL. Users can then access the content of the long URL via the short URL.
Add a redirect
To add a redirect, perform the following actions:
- Select a redirect type from the Type menu.
- The Permanent (301) option will notify the visitor’s browser to update its records.
- The Temporary (302) option will not update the visitor’s bookmarks.
- Select **All Public Domains** or a domain name from the menu.
- Use the * *All Public Domains* * option to redirect all of the domains that your cPanel accounts control.
- In the text box to the right of the domain selection menu, enter the rest of the URL that you want the server to redirect.
In the redirects to text box, enter the URL to which you wish to redirect users.
Important:
You must specify a protocol in this text box. For example,
http://
,https://
, orftp://
.- Select one of the following options:
- The Only redirect with www option will only redirect users who enter
www
in front of the page name. - The Redirect with or without www. option will redirect all users regardless of whether the
www.
prefix is included with the URL. - The Do Not Redirect www. option will not redirect users who enter
www.
with the URL.
- The Only redirect with www option will only redirect users who enter
- Select the Wildcard Redirect option if you wish to redirect all files within a directory to the same filename in the new directory.
- For example, if you enable the Wild Card Redirect option and
example1.com
redirects toexample.com
, then a visitor who tries to access the
URL will redirect to thehttp://
example1.com/pic.jpg
URL.http://
example.com/pic.jpg
- For example, if you enable the Wild Card Redirect option and
- Click Add.
- To test the redirect, click the link under Directory in the Current Redirects table. This will take you to the original domain, which should be redirected, if it is properly configured.
Important
You cannot edit a redirect. To modify a redirect, you must delete and then recreate it.
Remove a redirect
To remove a redirect, perform the following steps:
- Click the button that corresponds to the redirect that you want to remove.
- To confirm that you want to remove the redirect, click Yes.
- To keep the redirect, click No.
Search your redirects
To search your redirects, perform the following steps:
- Enter the search criteria into the Search text box.
- Click Go.
The redirects that match your search criteria will populate the list.
To sort your list of redirects, click the appropriate table heading. For example, Directory or Type.