Domains and DNS
Redirects: redirect domains and pages from cPanel
cPanel's Redirects option lets you create redirects, simple or complete, from a form. For example, sending yourdomain.com/tienda to yourdomain.com/shop, or all of yourdomain.com to newdomain.com.

Create the redirect

- Type: choose Permanent (301) or Temporary (302).
- 301 if the change is final, for example if you have moved the shop from
/tiendato/shop. Search engines will update their results with the new address. - 302 if it is temporary, such as putting a section into maintenance. If you are testing, start with 302: browsers store 301s and they are hard to undo afterwards.
- 301 if the change is final, for example if you have moved the shop from
- Domain: choose the domain you want to redirect. All Public Domains applies it to every domain in the account.
- In the field next to it, type the path you are redirecting, for example
tienda. Leave it empty to redirect the whole domain. - Redirects to: type the full destination address, with
https://. For examplehttps://yourdomain.com/shop. - www. redirection: choose whether it applies only to
yourdomain.com, only towww.yourdomain.comor to both. Usually, Redirect with or without www. - Wild Card Redirect: tick it if you want to keep the rest of the path (we explain it below).
- Click Add.
The redirect appears in the list below. To change it, delete it and create it again with the correct details.
Wild Card Redirect
Imagine you change yourdomain.com to newdomain.com. The pages are the same, only the domain changes, and creating the redirects one by one isn't feasible.
With Wild Card Redirect enabled, yourdomain.com/anything takes you to its equivalent newdomain.com/anything. Without it, every page ends up on the newdomain.com home page, which confuses visitors and loses search rankings.
Check that it works
In a private window, open the old address with and without www, and with http:// and https://, both the home page and an inner page. You should end up at the new address.
For the redirect from https:// to work, the source domain needs to have its SSL certificate on the hosting.
If you have an application such as WordPress, PrestaShop or similar and the redirect doesn't work, see why a redirect made from cPanel doesn't work.
You may also find useful
- Choose the www or non-www version and redirect the other Set up a 301 redirect between the www and non-www versions, keep paths with a wildcard and order the...
- Load another website in an iframe Shows how to load another website inside an iframe while keeping the visible domain, which file to c...
- Redirect a domain while keeping certain folders Provides ModRewrite rules to move a domain to another address without affecting an intranet or other...
- Change DNS with minimal disruption to your website and email How to prepare the DNS zone, sync the latest changes and move a website and its email to the new hos...
Something wrong or out of date? Tell us and we will review it.