How Do I Redirect One Domain to Another Domain Name?

Redirecting a domain name means pointing one URL to another. The process entails forwarding users who try to load one URL to another of your choice. You can do this in several ways, but the most reliable is through the .htaccess file.

Redirect Domains Using .htaccess

How Do I Redirect One Domain to Another Domain Name?

Log in to your web hosting control panel and open the “File Manager” panel. Select your .htaccess file and open it for editing. For domain name redirection, the most typical method is to use a 301 Permanent Redirect.

Add the following code to your .htaccess file:

Redirect 301 /

If you do not have an existing .htacces file, create a blank file using the File Editor and enter the code above. Save it with the filename as .htaccess in the root of your public_html directory. If creating this file on your local device, always use a plain text editor such as NotePad.

It is advisable not to use DNS records to redirect URLs since the utility of a CNAME redirect is limited. You will only be able to use CNAME for same-server redirects, while using .htaccess will enable redirects to any URL online.



Working in the web hosting industry for over 13 years, Rado has inevitably got some insight into the industry. A digital marketer by education, Rado is always putting himself in the client's shoes, trying to see what's best for THEM first. A man of the fine detail, you can often find him spending 10+ minutes wondering over a missing comma or slightly skewed design.

Write a Comment