Choose the type
If you’re not sure, use Permanent (301).
Set up a redirect in cPanel
1
Open Redirects
Log in to cPanel, type Redirects in the Search Tools box and open it.
2
Choose the type
Choose Permanent (301) or Temporary (302).
3
Choose what to redirect
Pick the domain from the list. To redirect the whole domain, leave the path box empty. To redirect one page, type its path, such as
old-page.4
Enter the new address
In Redirects to, type the full new address, starting with
https://.5
Add it
Click Add. Test it by opening the old address in a private (incognito) window.
Want your site to always open with
https://? Use Force HTTPS Redirect instead. See Force HTTPS. For www problems, see www or non-www not working.Redirect with an .htaccess file (advanced)
cPanel saves redirects in a file called.htaccess in your website’s folder. You can also edit it yourself, which helps when you have many redirects.
1
Open the file
In File Manager, open
public_html. Click Settings and turn on Show Hidden Files. Right-click .htaccess and choose Edit. If there’s no .htaccess, create a file with that name.2
Take a copy first
Copy the whole file into a text file on your computer before you change anything.
3
Add your redirects
Add one line per page at the top of the file, for example:
4
Save and test
Save the file and open the old addresses in a private window.