Managing a website often involves changes whether you're rebranding, restructuring content, or simply updating outdated pages. One of the most effective ways to handle these changes without disrupting user experience or losing valuable search engine rankings is by using URL redirects.
A redirect automatically sends visitors and search engines from one web address to another. For example, if you've moved a page or entire site to a new location, a redirect ensures that anyone trying to access the old URL is seamlessly taken to the new one. This is especially important for preserving SEO performance, avoiding broken links, and maintaining site credibility.
If your website is hosted on MokohHost, you have access to cPanel, a powerful control panel that makes setting up redirects quick and easy no advanced technical knowledge required. In this article, you'll learn how to redirect your website to another URL using cPanel, a popular hosting control panel available on MokohHost.
What is URL Redirect
URL Redirect, also known as URL forwarding, is a method used to direct visitors from one web address to another. It allows you to forward your domain name to any other live website or webpage. This redirection process works using specific status codes defined by the HTTP protocol, which tell browsers how to handle the request. Depending on the intended purpose, a URL redirect can be permanent (using a 301 status code), temporary (using a 302 code), or masked, such as with a URL frame where the destination content is displayed while the original domain name remains visible in the browser’s address bar.
Why Are Redirects Important?
Redirects Help Preserve Search Performance
One of the most critical reasons to use redirects is to maintain your website’s search engine visibility and traffic. When a page is removed or its URL changes, any existing backlinks, search rankings, or traffic associated with that page could be lost. Redirects help transfer these valuable SEO signals to the updated version of the page.
For example, if your original URL—“mokohhost.com/blog/wordpress-hosting-domain-in-2024” earned a strong position in search results and attracted numerous backlinks, you wouldn't want to lose that momentum. By redirecting it to a new, more evergreen URL like “mokohhost.com/blog/wordpress-hosting-domain” you ensure that the SEO value and user traffic are passed along to the new page.
Redirects Ensure a Smooth User Experience
Redirects also play a key role in keeping your website user-friendly. Without them, visitors trying to access a page that no longer exists or has moved would encounter a 404 error, which can lead to confusion and frustration.
Continuing the earlier example, if a blog post originally published in 2024 is later updated for 2025 and given a cleaner URL, users who bookmarked or shared the old link could still be trying to access it. If that old URL isn’t redirected to the new one, they’ll be met with a broken page. A properly implemented redirect makes sure they land on the most current version of the content, maintaining trust and usability.
When to Use Redirects
Websites commonly use redirects in the following situations:
- Moving a page from one URL to another
- Deleting or removing a page
- Adding category tags or parent pages that change the URL structure
- Migrating the website to a new domain
- Updating or standardizing URL naming conventions
- Merging duplicate pages into a single version
- Switching the site from HTTP to HTTPS for enhanced security
Types of Domain Redirects
301 Redirect
A 301 Redirect is a permanent method of forwarding one URL to another. It's the recommended approach when your website or a specific page has been moved permanently to a new location. This type of redirect tells search engines and browsers that the change is not temporary, and all future requests should go to the new URL. As a result, it passes on nearly all of the original page’s SEO value including search rankings and link equity to the new destination.
This kind of redirect is particularly effective in situations where you've migrated your website to a new domain and want to ensure a smooth transition for users and search engines alike. It’s also helpful if your site can be accessed through multiple URLs such as with or without “www,” or through different subdomains, and you want to consolidate all traffic to a single, preferred version. Additionally, if you're combining two websites, 301 redirects ensure that outdated or obsolete links continue to work by directing users to the correct pages on the new site.
Keep in mind that search engines may take some time to detect and process a 301 redirect. The speed of this recognition can vary depending on how frequently their crawlers visit your site and how effectively the new URL resolves. Nonetheless, a properly implemented 301 redirect is the most search engine-friendly and reliable way to guide both users and bots to your updated content.
302 Redirect
A 302 Redirect is a temporary method of forwarding one URL to another. It’s used when a web page or resource is temporarily unavailable or has been moved, but you intend to restore it later. With a 302 redirect, search engines continue to index the original URL rather than the destination, ensuring that the original page remains visible in search results.
This type of redirect is useful in situations where you need to perform maintenance on a page and want to temporarily send visitors to an alternative location. It allows users to access content without interruption while preserving the search engine ranking of the original URL. Another practical example is when you have a permanent page with strong SEO value such as one titled “Latest Phone Model” and you want to temporarily redirect it to a new product page without affecting its position in search rankings. In this case, search engines will keep indexing the original “Latest Phone Model” page, but visitors will be taken to the most current product offering.
A 302 redirect also comes in handy when you're actively promoting a specific URL but, for various reasons, need the content to temporarily live elsewhere. In all of these scenarios, a 302 ensures continuity for your audience while maintaining the long-term integrity of your original web address.
Step-by-Step Guide to Redirecting Your Site in cPanel
Step 1: Log in to cPanel
Access your MokohHost cPanel dashboard and go to the Domains section.
Step 2: Open the Redirects tool
Click on Redirects to access the redirect management interface docs.cpanel.net+15support.cpanel.net+15himalayanhost.com+15.
Step 3: Configure your redirect
- Permanent (301) – best for SEO, indicating a permanent move.
- Temporary (302) – if you plan to revert later docs.cpanel.net+12support.cpanel.net+12my.maxer.com+12university.witty.computer+1himalayanhost.com+1.
- Choose the domain (or “All Public Domains”) from the dropdown.
- To redirect a specific page, enter its path in the field (e.g., old-page.html); leave blank (or type /) to redirect the entire domain support.cpanel.net+1himalayanhost.com+1my.maxer.com+1a2hosting.com+1.
- Only with www
- With or without www
- Do not redirect www cpanel.net+15support.cpanel.net+15reddit.com+15
- Enables redirecting all files under a directory to match paths on the destination site docs.cpanel.net+7support.cpanel.net+7himalayanhost.com+7.
- Choose the type:
- Select the domain or path:
- Enter the destination URL, including http:// or https:// cpanel.net+10support.cpanel.net+10university.witty.computer+10.
- www redirection options:
- Wild Card Redirect (optional):
Step 4: Apply the redirect
Click Add to create the redirect. It will appear in the Current Redirects list reddit.com+5himalayanhost.com+5my.maxer.com+5docs.cpanel.net+11support.cpanel.net+11my.maxer.com+11.
Step 5: Verify your setup
- Test the original URL in your browser.
- If it doesn’t work immediately, clear your browser cache or test in incognito mode reddit.com+7support.cpanel.net+7a2hosting.com+7my.maxer.com+15university.witty.computer+15reddit.com+15.
Step 6: Manage redirects
- To remove a redirect, click Delete next to it in the Current Redirects list.
- Note: To modify a redirect, you must delete it and recreate it
Conclusion
In conclusion, redirecting your website to another URL in cPanel is a simple yet powerful way to manage website traffic and ensure that visitors are directed to the correct destination. Whether you're moving to a new domain, consolidating multiple sites, or setting up temporary redirects for maintenance, the process can be done efficiently using cPanel's built-in tools. By following the steps outlined in this guide, you can implement redirects without any technical hassle.
At MokohHost, we understand the importance of seamless website management and offer user-friendly hosting solutions to make tasks like URL redirection as simple as possible. Our platform offers reliable support and robust features to ensure your website operates smoothly at all times. Whether you're a beginner or an experienced web administrator, MokohHost is here to support your website's success.
