To set up a redirect on cPanel, you can use the "Redirects" feature in the "Domains" section. Here are the steps to follow:
- Log in to your cPanel account.
- In the Domains section, click on the "Redirects" icon.
- In the "Type" dropdown menu, select the type of redirect you want to create. The most common types are:
- "Permanent (301)" for redirects that will last forever.
- "Temporary (302)" for redirects that will last only for a short period of time.
- In the "Source URL" field, enter the URL of the page you want to redirect.
- In the "Destination URL" field, enter the URL of the page you want the traffic to be redirected to.
- Click on the "Add" button to create the redirect.
You can also set up redirects using .htaccess file, add the following code to the file:
Redirect 301 /old-page.html http://www.example.com/new-page.html
Please note that redirects can affect the SEO of your website, so it's important to use them carefully and to test them before making them live. Also, it's a good idea to keep track of the redirects you have set up, as having too many redirects can slow down your website and make it difficult to manage.