You want to redirect one domain to another but you don’t know how to do it? Don’t worry as you have come to the right place! Our instructions will help you redirect your domain!
Domain name redirections are possible only by utilizing CNAME recorder. Even though, in this way, it is possible to redirect subdomains only.
The other option you can use and the option that most of the people use is having two hosting accounts for both domains (for the domain you are currently using and for the domain you want your domain to redirect to). This way, you will be able to make the redirection by using files.
Other topics that you can check in:
PHP and HTML Redirects
So, if you don’t want to use the htaccess file to redirect your online visitors, you can use the option – PHP or HTML file. By using this option you will be able to complete the actual redirection. Here are the examples for PHP and HTML:
- For PHP, you need to create a file (for example, index.php) and add the following <?php header(‘Location: http://www.yoursite.com/redirect_location’); ?>
- For HTML, you need to create a file (for example, index.html) with the following lines <META HTTP-EQUIV=”Refresh”CONTENT=”0; URL= http://www.yoursite.com/redirect_location”>
You have an option to delay the domain redirect by expanding the CONTENT variable. If you want to use this option, you need to enter CONTENT = 5 and this will delay the domain redirection for 5 seconds.
How to Create Various Types of Web Redirect with CPanel
You can also create various types of web redirects from the cPanel. The redirections may be permanent and temporary.
- The Permanent redirects have 301 status code and they are cached in the browser memory. This means that the web page has moved and they demand any use or search engine that comes to the web page to update the URL.
- The Temporary redirects have 302 status code and this code requires the browser not to save the redirection into its cached data. The temporary redirect is a recommendable solution unless you are sure that you will never change the domain again in the future.
If these two types of redirects show errors or other complications, use the PHP or HTML redirects.
We hope that this article was helpful for you and that now you know how to redirect a domain name! For additional information, you can contact your web host provider!
— Domain Auctions (@domainauctions8) 1 de mayo de 2017