Find answers to your questions

Documentation

Redirect a domain or page with cPanel

An HTTP redirect sends visitors from one web address to another. It is useful for a moved page, a domain change or a short address. It transfers neither website files nor email accounts. A CNAME record serves a different purpose: it links names in DNS.

Prepare the source and destination

The destination must already work. The source domain must reach the hosting or service that will perform the redirect. If a visitor arrives over HTTPS, the source certificate must be valid before the browser can receive the redirect. The HTTPS destination also needs a valid certificate.

Check existing rules in the website, cPanel and any CDN or proxy. Choose which tool will manage this redirect and avoid conflicting rules. To align www and non-www addresses, see the guide to choosing your website’s main address.

Create a rule in cPanel

If the tool is available and cPanel is the appropriate place to manage this rule, open Redirects in the Domains section.

  1. Choose the type: 301 for a permanent move, or 302 for a temporary destination. A permanent redirect can remain cached after removal; a temporary one is not necessarily free of caching.
  2. Select only the affected domain. All Public Domains would extend the rule to every domain in the account.
  3. In the field after the slash, enter the source path if you are targeting a specific page or directory. Enter the complete destination, including https://, in Redirects to.
  4. Choose which variants to match: only with www, with or without www, or without www only. The destination must not trigger the same rule again.
  5. Enable Wild Card Redirect only when the paths should correspond: a source page should then lead to the same path at the destination. This option does not create custom mappings for renamed pages.
  6. Review the scope and destination, then add the rule.

Test beyond the homepage

Test the relevant HTTP and HTTPS variants, both forms of the hostname and an internal page. Include a harmless test parameter if your site uses URL parameters. Check the final address, errors and redirect loops. Parameter preservation depends on the effective rule; the Wild Card checkbox does not guarantee it.

During a migration, map old pages to relevant destinations. Do not send every page to the homepage by default. Forms, payments and APIs need particular review before a blanket redirect.

If the result differs, also investigate browser, website and CDN caches. A private window does not remove shared caches. To change an entry in cPanel, record its settings, then delete and recreate only the identified rule. Do not empty the website’s configuration file to resolve a conflict.

Plan the change with Nuagerie

Our team can help you check dependencies and plan a change that fits your website. In your Client Area, provide the affected domain, the intended result and the checks you have completed. Do not include passwords or access tokens in your request.

Official references

Related Articles

How to clear your computer’s DNS cache The DNS cache temporarily stores answers that connect domain names with network addresses. Clearing it can help when one device retains an old answer after a DNS change. It is not a general fix for HTTP 404 errors, expired certificates or a website outage. Check before changing anythingRecord the exact address and... Understand domains, aliases and subdomains A domain name can serve a website, email addresses and other services. Before adding it to your hosting account, decide what you want to connect: a new website, another address for the same website or a subdomain. Registration, DNS and hosting have different roles Domain registration: this concerns the name itself,... Choose your website’s main address: with or without www Your website may be reachable with or without www, over HTTP or HTTPS. Choosing a consistent main address simplifies links, tracking and navigation. Each alternative address should lead to the right page at the chosen HTTPS address. Choose an address that fits your siteUsing www does not, by itself, provide a... How to Create and Use Subdomains Subdomains Subdomains allow you to separate your website into several distinct sections. Subdomains will look like this: subdomain.yourdomain.com, where subdomain is the name of the subdomain, and yourdomain is your domain name. Examples Here are some common subdomains: http://forum.yourdomain.com (used for the... What happens once my domain expires? An expired domain can interrupt your website, email and other services that use its name. The timing and recovery options depend on the domain extension, the registrar’s terms and the domain’s current status. Act promptly rather than assuming that a fixed number of extra days is available. Understand the domain’s...