Redirecting a domain and pages
How to set up a permanent or temporary redirect to another address in cPanel.
A redirect sends visitors from one address to another, e.g. from an old domain to a new one or from www to the version without www.
Redirects in cPanel#
- In cPanel, in the Domains section, open Redirects.
- In the Type field choose Permanent (301) if the change is permanent, or Temporary (302) if it is temporary.
- Choose the domain you redirect from and enter the path (empty for the whole domain).
- In Redirects to enter the full destination address, e.g.
https://newdomain.com. - Choose whether to redirect with or without
www, and optionally Wild Card Redirect (forwards subpages too). - Click Add.
You can remove a redirect at the bottom of the same page, in the Current Redirects list.
Which type to use#
- 301 (permanent): domain change, page address change. Search engines carry the value over to the new address.
- 302 (temporary): maintenance or a short-term campaign.
Vam je bil ta članek v pomoč?
Hvala za vaše mnenje! Potrebujete pomoč? Odprite zahtevek.
Sorodni članki
Adding an addon domainHow to host a second domain on the same hosting account with its own folder and site..htaccess basicsWhat .htaccess is, how to edit it safely and examples of common rules.Forcing HTTPSHow to automatically redirect all visitors from http:// to https:// using cPanel or the .htaccess file.DNS records explainedWhat A, AAAA, CNAME, MX, TXT and NS records mean and when you change them.
