When you change a page URL, delete outdated content, or move your website to a new domain, you need to set up a 301 redirect in cPanel so visitors and search engines do not hit a dead end. Even if your site runs on one of the best WordPress hosting providers, handling redirects at the server level through cPanel is faster and cleaner than adding another heavy plugin to your site.
A 301 redirect tells browsers and search engine crawlers that a page or domain has moved permanently. It automatically forwards human visitors to the new URL and passes your existing link equity and SEO authority to the new destination. This tutorial walks you through configuring single-page and full-domain 301 redirects in about 5 minutes.
According to official cPanel documentation, the Redirects interface writes rules directly to your server’s .htaccess file. While the modern cPanel Jupiter theme standardizes this screen, exact menu locations can vary slightly depending on your hosting provider and plan.
What You Need Before You Start
Before creating any redirect rules, make sure you have the following items ready:
- Your cPanel login credentials (or access through your hosting provider’s client portal).
- The exact old URL path or domain name you want to forward.
- The complete, working destination URL (including
https://) where visitors should land. - A current backup of your website’s
.htaccessfile in case you need to undo your changes.
Back up your .htaccess file first
When you add a redirect in cPanel, the system automatically edits the .htaccess file in your domain’s document root. Because a syntax conflict in .htaccess can trigger a 500 Internal Server Error or an infinite redirect loop, always download a copy of your existing .htaccess file using cPanel File Manager before adding new redirect rules.
301 vs 302 Redirects: Which One Should You Choose?
Inside the cPanel Redirects tool, you must choose between two HTTP status codes. Picking the right one is critical for your search engine rankings.
| Redirect Type | Meaning | Impact on SEO and Browsers | Best Use Case |
|---|---|---|---|
| 301 (Permanent) | The page or domain has moved to a new location for good. | Search engines replace the old URL in their index and transfer link equity to the new URL. Browsers cache the redirect aggressively. | Domain migrations, changed URL slugs, consolidating duplicate pages, or deleting old posts with backlinks. |
| 302 (Temporary) | The page is temporarily located elsewhere but will return. | Search engines keep the old URL in their index and do not transfer full ranking power to the destination. | Seasonal promo pages, A/B testing, or temporary maintenance pages. |
In almost all everyday website management scenarios, you want Permanent (301). Quality cPanel hosts execute these Apache or LiteSpeed rewrite rules at the server level before PHP even loads, which we highlight in our HostArmada review as a major advantage over slow PHP-based redirect plugins.
Step 1: Open the Redirects Tool in cPanel
First, log in to your control panel and locate the domain management tools. Menu names vary by panel version and host customization, but in the standard cPanel Jupiter interface, Redirects lives under the Domains section.
- Log in to your cPanel dashboard.
- Scroll down to the Domains section on the main screen.
- Click on Redirects (or type
Redirectsinto the top search bar to open it directly).
Once the page opens, you will see the Add Redirect form at the top and a list of Current Redirects at the bottom.
Step 2: Set Up a 301 Redirect in cPanel for a Single Page
Use this method when you have changed the slug of a specific blog post or landing page and want to forward the old URL to the new one on the same domain (or a different domain).
- In the Type dropdown menu, select Permanent (301).
- In the https?://(www.)? dropdown menu, select the specific domain name that hosts the old page. Do not leave it on ** All Public Domains ** unless you want the rule applied to every domain on your account.
- In the text field right after the slash (
/), enter the exact path of the old page without a leading slash. For example, to redirecthttps://yourdomain.com/old-page, typeold-page(orblog/old-post.html). - In the Redirects to field, enter the complete destination URL, starting with
https://orhttp://(for example,https://yourdomain.com/new-page/). - Under www. redirection:, select Redirect with or without www. so visitors typing either version get forwarded properly.
- Leave the WildCard Redirect box unchecked for single-page redirects.
- Click the blue Add button to save and activate the rule.
Do not omit the protocol in the destination box
cPanel requires the full URL in the Redirects to field. You must begin the destination address with https:// or http://, otherwise cPanel will display a validation error and refuse to save the rule.
Step 3: Redirect an Entire Domain Using a Wildcard 301 Redirect
If you are moving your entire website to a brand-new domain name and want every inner page on the old domain (like olddomain.com/about) to forward automatically to the matching path on the new domain (newdomain.com/about), use a Wildcard Redirect.
- In the Type dropdown menu, select Permanent (301).
- In the https?://(www.)? dropdown menu, choose the old domain you are moving away from.
- Leave the path box after the slash (
/) completely blank so the rule applies to the entire domain. - In the Redirects to field, enter the new domain name with a trailing slash at the end (for example,
https://newdomain.com/). - Under www. redirection:, leave Redirect with or without www. selected.
- Check the box labeled WildCard Redirect.
- Click Add.
How to remove or edit a cPanel redirect
cPanel does not allow you to edit an existing redirect rule directly inside the Redirects interface. If you make a typo or want to change a destination URL, scroll down to the Current Redirects table at the bottom of the page, click Delete next to the rule, click Remove Redirect to confirm, and then create a new rule from scratch.
How to Check It Worked and Test the Destination
After you set up a 301 redirect in cPanel, you should always test the old URL to verify two things: that it lands on the exact destination URL you intended, and that the server actually returns a 301 Moved Permanently HTTP status code instead of a 302 or a multi-step redirect chain.
Method 1: Test in an Incognito Browser Window
Because web browsers aggressively cache 301 redirects, testing in your normal browser window can show outdated results if you visited the URL earlier.
- Open a new private or Incognito window in your web browser.
- Type the old URL into the address bar and press Enter.
- Confirm that the browser address bar changes to the new destination URL and that the page loads without errors.
Method 2: Inspect the HTTP Status Code with cURL
To verify that search engines see a clean 301 status code with no extra hops, open Terminal (macOS/Linux) or Command Prompt (Windows) and run the following command, replacing the URL with your old address:
curl -I https://yourdomain.com/old-pageLook at the first few lines of the output. A properly working cPanel 301 redirect will show the status code and the exact Location header:
HTTP/2 301
location: https://yourdomain.com/new-page/If you want to follow the entire redirect path in the terminal to ensure the final destination returns a healthy 200 OK status, add the -L flag:
curl -I -L https://yourdomain.com/old-page
ScalaHosting
The best all-around web host for performance, security, and support, independently owned and built around its own SPanel technology.
- SPanel control panel
- SShield security
- Managed cloud VPS
- Flexible scaling
- Independent ownership
* Introductory price. Renewal rates apply. Anytime money-back guarantee.
Check out my ScalaHosting Review and grab the latest discount on my #1 web hosting pick for 2026.
Server-level redirects execute much faster on well-optimized cPanel stacks. You can compare how other leading cPanel hosts perform in our InMotion Hosting review and our Hosting.com review (formerly A2 Hosting).
Troubleshooting Common cPanel Redirect Problems
Error: “ERR_TOO_MANY_REDIRECTS” (Infinite Redirect Loop)
This error happens when your old URL redirects to a destination URL that redirects right back to the old URL, or when you redirect an entire domain to another page on that exact same domain. To fix this, go to the Current Redirects table in cPanel, delete the rule you just added, and clear your browser cache. If you are redirecting a page on the same domain, make sure you typed the specific path after the / rather than leaving it blank.
WordPress Ignores the cPanel Redirect
When you use the cPanel Redirects tool, cPanel appends the new RewriteRule to the very bottom of your .htaccess file. On a WordPress site, the default # BEGIN WordPress rewrite block sits higher up in the file and captures all incoming URL requests before Apache ever reaches the bottom of the file.
To fix this, open cPanel File Manager, edit the .htaccess file in your public_html folder, cut the redirect block that cPanel generated at the bottom, and paste it at the very top of the file above # BEGIN WordPress. Save the file and test again.
Note for editing .htaccess manually
If you move a redirect rule to the top of your .htaccess file manually in File Manager, do not delete that rule later using the cPanel Redirects GUI, or double-check your file afterward. Always keep a backup copy of .htaccess before editing it by hand.
Old URL Still Loads After Adding the Redirect
If your old page still loads instead of forwarding, first check whether you are using a caching plugin (like LiteSpeed Cache or WP Rocket) or a CDN like Cloudflare, and purge all caches. Second, test using an Incognito window or the curl -I command shown above to rule out local browser caching.
Query Strings Are Appended to the New Destination
By default, Apache rewrite rules pass any existing URL parameters (such as ?id=123) over to the destination URL. If you are redirecting old dynamic URLs to a clean static page and want to strip the query string, you will need to add a question mark (?) at the end of the destination URL inside your .htaccess rule, or use the QSD (Query String Discard) flag.
FAQ
Do cPanel 301 redirects slow down my website?
No, adding a handful of 301 redirects in cPanel will not noticeably slow down your website because the web server processes .htaccess rules in microseconds before loading WordPress or PHP. Only when a .htaccess file accumulates thousands of individual redirect lines does it start to impact server response time.
How long should I keep a 301 redirect active in cPanel?
According to search engine best practices, you should keep a 301 redirect in place for at least one year after moving a page or domain so Google and other search engines transfer all ranking signals. If the old URL has valuable external backlinks pointing to it, keep the redirect active indefinitely so referral traffic never hits a 404 page.
Can I redirect an HTTPS domain in cPanel without an SSL certificate on the old domain?
No, if a visitor types https://olddomain.com, the browser performs the SSL/TLS handshake before the server can read your cPanel .htaccess redirect rule. To avoid browser security warnings during a domain migration, keep your old domain attached to your cPanel account with a free AutoSSL certificate active so HTTPS requests redirect smoothly.
What is the difference between a cPanel 301 redirect and an Alias (Parked Domain)?
A 301 redirect changes the URL in the visitor’s browser address bar to the new domain and tells search engines to index only the destination domain. A cPanel Alias displays the website content under the second domain name without changing the browser URL, which can cause duplicate content issues if not canonicalized properly. If you manage multiple sites on a VPS, you can see how dedicated panels handle domain routing in our ScalaHosting review.
Next Steps
Once your 301 redirects are live and tested, update any internal links on your website so visitors go straight to the new URL without passing through a redirect hop. If you just moved to a new domain, submit a Change of Address request in Google Search Console and monitor your crawl stats over the next few weeks. If you are looking to upgrade your hosting environment during a site migration, check out our best VPS hosting roundup or compare budget-friendly options in our best cheap hosting guide.
















