How to Setup Domain Redirects in cPanel

This article explains what a redirect is, and how to set one up in cPanel.

What is a redirect and why would I use it?

A domain redirect allows you to send visitors from one domain to another domain, another subdomain, or to a specific URL.

  • One example use would be sending anyone going to example.net to example.com instead.
  • You can also use this to direct www.example.com to example.com, or vice versa.
  • It can also be used to give people a shortcut to a longer URL. For example, shortcut.example.com could be setup to send people to example.com/some-really-long-complex-url/ instead.

Sending people to a different URL than the one they entered is called a redirect.

Steps to Add a Redirect

Video Tutorial

Step-by-Step Directions

  1. Log into cPanel.
  2. Look for the Domains section, and click on the Redirects icon.
  3. Under Type, select whether the redirect is temporary or permanent.
    • Search engines treat the redirect differently based on this selection.
    • A search engine will usually change its listings to reflect the new URL if you select permanent.
  4. Select a domain name from the list.
  5. In the empty field after the domain:
    • Leave empty if you want to redirect the whole domain name.
    • Enter a specific directory if you want to redirect a directory.
  6. In the redirects to field, enter the URL you wish to redirect to.
    • For example: http://example.com
  7. Select whether you want to redirect the domain with or without the www.
    • This is useful if you want to redirect www.example.com to example.com or vice versa.
  8. Select whether you want this to be a Wild Card Redirect.
    • If you check this box, then when someone visits the redirected domain, it tries to find the same file name on the destination domain. 
    • For example, if you are redirecting http://example.com as a wildcard redirect to http://completehostingguide.com, if someone enters http://example.com/blah.txt, it would try to send them to http://completehostingguide.com/blah.txt instead of http://completehostingguide.com.
  9. Click on the Add button.

Recommended Content