TheÂ RedirectsÂ tool in cPanel will allow you to redirect your website's visitors from a source URL to a target URL.
How to Set Up a Redirect
- Log into cPanel.
- Under Domains, click theÂ RedirectsÂ icon.
- From the Type drop-down menu, select which type of redirect is to be use.
- Permanent 301Â is a redirect that will update the visitor's bookmarks and direct search engines to the new site.
- Temporary 302Â is a redirect that will redirect the visitor or search engine but will not update the bookmark, and search engines will continue to index to the original page.
- From the "http://(www.)" drop-down menu, choose the domain name you would like to redirect.
- If you would like to redirect a single page or directory, you can use the adjacent text field to enter the name of the folder or file.
- In the "redirects to" field, enter the full URL of the page to which you will be redirecting.
Note:Â You must enter the protocolÂ (e.g.Â http://,Â https://Â orÂ ftp://) as well in order for the domain URL to be accepted.
- Select one of the following www redirection options to dictate whether or not the domain will be redirecting:
- Only redirect with www.Â only redirects visitors that type www. as part of the URL.
- Redirect with or without www.Â redirects all visitors regardless of if they use www. or not.
- Do Not Redirect www.Â will not redirect visitors that use www. as part of the URL.
- Clicking theÂ Wild Card RedirectÂ option allows users to set up a redirect to the same file on a new destination.
- With Wild Card Redirect, www.example.com/about.html will redirect to www.example-destination.com/about.html
- Without Wild Card Redirect, www.example.com/about.html will redirect to www.example-destination.com
- ClickÂ AddÂ to create the redirect as specified.
Now when visitors type the exact URL that you specified, they will be redirected to the target site you assigned.