To set up a redirect on cPanel, follow these steps:
- 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 that you want to use (e.g. "Permanent (301)", "Temporary (302)", etc.).
- In the "Redirects From" field, enter the URL or directory that you want to redirect from.
- In the "Redirects To" field, enter the URL or directory that you want to redirect to.
- In the "Wild Card Redirect" field, select whether you want to enable wildcard redirects (optional).
- Click on the "Add" button.
Once you have added the redirect, any requests to the "Redirects From" URL or directory will be redirected to the "Redirects To" URL or directory. Redirects are useful for directing users to the correct location on your website, or for directing traffic from an old URL to a new URL. It is important to regularly review and manage the redirects on your website to ensure that they are up-to-date and working correctly.