As a website administrator, there are times that you may want to send some or all of your visitors to a particular page or different URL.
You can do this by logging into your cPanel, scrolling down to the Domains pane, and then clicking on the Redirects icon.
To add a new redirect, select a redirect type from the Type menu.
You can learn about different types of redirects by visiting:
- Moz 301 & 302 Redirection for SEO
- SEMRush Comprehensive Guide to URL Redirection
- MDN Redirections in HTTP
- Nail Patel How to Get More Traffic from 301 Redirects
- Google Change Page URLs With 301 Redirects
Select a domain name that you want to perform the action on from the menu, or select **All Public Domains** to redirect all of the domains that your cPanel account controls.
Enter the rest of the URL from which you wish for the server to redirect visitors in the next text box.
Specify a protocol (HTTP://, HTTPS://, or FTP://) and then enter the URL to which you wish to redirect users in the Redirects to the text box.
Select to either:
- Only redirect with www where the system redirects visitors who enter the www. prefix before the domain name part of the URL.
- Redirect with or without www where the system redirects all users, regardless of whether the visitor enters the www. prefix before the domain name part of the URL.
- or Do Not Redirect www where the system does not redirect users who enter the www. prefix before the domain name part of the URL.
If you wish to redirect all files within a directory to the same filename in the new directory, select the Wild Card Redirect option.
Finally, click Add to complete the process.
Well, you need to test your hand-work.
So click the link under Directory in the Current Redirects table.
If the redirect was properly configured, the system directs you to the original domain.
After you have added a redirect from within the cPanel interface, the system will place the redirect rules at the bottom of the domain .htaccess file.
Some third-party applications will ignore your rule because those applications only read rules and configurations that their section of the .htaccess file contains.
To modify a redirect, you must delete it, and then recreate it.
Then inform your visitors to clear their web browser cache to remove the former redirection from their web browsers.
It is also important to point out that if you use a third-party application or content management system such as WordPress to add a redirect, the redirect may not function properly.