Redirecting a domain or subdomain can be crucial for website management, whether you're consolidating websites or guiding visitors to a new page. This guide provides a simple walkthrough on setting up redirects in cPanel, ensuring visitors reach their intended destination without confusion.
Steps to Redirect a Domain or Subdomain in cPanel
-
Log in to cPanel: Start by accessing your cPanel dashboard. You can do this by adding "/cpanel" to your website's URL and logging in with your credentials.
-
Access the Redirects Feature: In the cPanel dashboard, scroll down to the "Domains" section and click on "Redirects". This option allows you to manage where your domains and subdomains point.
-
Choose the Type of Redirect:
- Permanent (301): Use this for permanent redirects, signaling to search engines that the page has moved for good.
- Temporary (302): Choose this for temporary redirects if the move is not permanent.
-
Specify the URL to Redirect:
- From the "http://(www.)?" dropdown, select the domain or subdomain you wish to redirect.
- In the "/directory/optional" field, add any specific directory paths if you're not redirecting the entire domain.
-
Enter the Destination URL:
- In the "Redirects to" field, input the full URL where you want the original domain or subdomain to redirect to.
-
Set the Redirect Options:
- Choose whether to redirect with or without the "www." prefix.
- Select if you want to redirect all files within a directory to the same filename in the new directory.
-
Finalize the Redirect: After filling in the necessary information, click the "Add" button to implement your redirect.
-
Confirmation: A success message will confirm the redirect has been established. It's now active, and visitors will be directed to the new URL when accessing the original domain or subdomain.
Conclusion
Redirecting a domain or subdomain in cPanel is a straightforward process that can significantly improve your site's navigation and SEO. By following these steps, you can ensure that visitors and search engines are directed to the correct pages, enhancing the user experience and maintaining your site's authority.