Page tree
Skip to end of metadata
Go to start of metadata

This document is for a previous release of cPanel & WHM. To view our latest documentation, visit our Home page.

For cPanel & WHM 11.44

(Home >> Domains >> Redirects)


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:

  1. 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.
  2. 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.
  3. 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.
  4. In the redirects to text box, enter the URL to which you wish to redirect users.


    You must specify a protocol in this text box. For example, http://https://, or ftp://.

  5. 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.
  6. Select the Wild Card 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 redirects to, then a visitor who tries to access the URL will  redirect to the URL.
  7. 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.


 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:

  1. Click the  button that corresponds to the redirect that you want to remove.
  2. 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:

  1. Enter the search criteria into the Search text box.
  2. 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.