Category: Domains & DNS • Est. reading time: 3 minutes
A 301 redirect sends visitors and search engines from an old web address to a new one, permanently, and passes along your search ranking in the process. cPanel’s Redirects tool is the easy way, but doing it directly in your .htaccess file gives you finer control. Here is the manual method.
Where This Lives
Your .htaccess file sits in your site’s public_html folder. You can edit it through cPanel’s File Manager. Always make a copy before you change it, because a small mistake here can take a site offline.
Redirect a Single Page
To send one old page to a new one, add a line like this:
Redirect 301 /old-page.html https://yourdomain.com/new-page/
Redirect an Entire Domain
To send every page of an old domain to a new one, keeping the paths intact, use:
RewriteEngine On
RewriteRule ^(.*)$ https://newdomain.com/$1 [R=301,L]
Always use 301, not 302, for permanent moves. A 301 protects your SEO by passing your rankings to the new address. A 302 is temporary and does not. And test in a private browser window afterward, since browsers cache redirects aggressively.
Moving a site and worried about your rankings? Redirects done wrong can cost you traffic. This is our wheelhouse. Reach us at support@allydrez.com or 1-321-209-2004.