{"id":16046,"date":"2024-05-20T05:13:50","date_gmt":"2024-05-20T05:13:50","guid":{"rendered":"https:\/\/hostvento.com\/kb\/web-hosting\/getting-started-guide\/shared-hosting-quick-start-guide\/how-to-redirect-one-domain-to-another-domain-name\/"},"modified":"2024-06-14T09:41:41","modified_gmt":"2024-06-14T09:41:41","slug":"how-to-redirect-one-domain-to-another-domain-name","status":"publish","type":"docs","link":"https:\/\/www.hostvento.com\/kb\/docs\/hosting-faqs\/how-to-redirect-one-domain-to-another-domain-name\/","title":{"rendered":"How to redirect one domain to another domain name"},"content":{"rendered":"\n<p>It&nbsp;only&nbsp;reroutes&nbsp;the&nbsp;website&nbsp;to&nbsp;another&nbsp;domain&nbsp;when&nbsp;necessary,&nbsp;as&nbsp;the&nbsp;name&nbsp;would&nbsp;imply.<\/p>\n\n\n\n<p>1. Domain name redirects on&nbsp;<strong>DNS<\/strong>&nbsp;level by using&nbsp;<strong>CNAME records<\/strong>. CNAME stands for Canonical Name &amp; it specifies that the domain name is an alias of another, canonical domain name.<br>2.<strong>&nbsp;PHP &amp; HTML redirects<\/strong>&nbsp;\u2013 Instead of .htaccess file you can use PHP or an HTML file to perform actual redirection. Using these re-directions, you can set delay before the URL\u2019s are being redirected.<\/p>\n\n\n\n<p>For PHP, create a file (index.php for example) and add the below lines in it:<\/p>\n\n\n\n<p><em>&lt;?php<\/em><br><em>header( \u2018Location: http:\/\/www.yoursite.com\/redirect_location\u2019 ) ;<\/em><br><em>?&gt;<\/em><br>For HTML, create a file (index.html for example) with the following content:<\/p>\n\n\n\n<p><em>&lt;META HTTP-EQUIV=\u201dRefresh\u201d<\/em><br><em>CONTENT=\u201d0; URL=http:\/\/www.yoursite.com\/redirect_location\u201d&gt;<\/em><\/p>\n\n\n\n<p>In HTML, you get the option to delay the redirect by increasing the value of CONTENT variable. If you set CONTENT=3, it will delay the redirect for 3 seconds.<\/p>\n\n\n\n<p>3. You can also use&nbsp;<strong>.htaccess files<\/strong>&nbsp;under the DocumentRoot for the website and set the redirects.<br>Login to your cPanel, access option Redirects. You can then set the redirects as required.<\/p>\n\n\n\n<p>Please feel free to join up for our cPanel hosting plan if you are having trouble setting redirects or if your existing hosting provider is not assisting you.The skilled staff at hostvento will take care of everything and assist you in moving your website from your current host to <a href=\"https:\/\/www.hostvento.com\/\">hostvento servers.<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>It&nbsp;only&nbsp;reroutes&nbsp;the&nbsp;website&nbsp;to&nbsp;another&nbsp;domain&nbsp;when&nbsp;necessary,&nbsp;as&nbsp;the&nbsp;name&nbsp;would&nbsp;imply. 1. Domain name redirects on&nbsp;DNS&nbsp;level by using&nbsp;CNAME records. CNAME stands for Canonical Name &amp; it specifies that the domain name is an alias of another, canonical domain name.2.&nbsp;PHP &amp; HTML redirects&nbsp;\u2013 Instead of .htaccess file you can use PHP or an HTML file to perform actual redirection. Using these re-directions, you can set delay [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":23377,"menu_order":913,"comment_status":"closed","ping_status":"closed","template":"","doc_tag":[],"class_list":["post-16046","docs","type-docs","status-publish","hentry","no-post-thumbnail"],"acf":[],"_links":{"self":[{"href":"https:\/\/www.hostvento.com\/kb\/wp-json\/wp\/v2\/docs\/16046","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.hostvento.com\/kb\/wp-json\/wp\/v2\/docs"}],"about":[{"href":"https:\/\/www.hostvento.com\/kb\/wp-json\/wp\/v2\/types\/docs"}],"author":[{"embeddable":true,"href":"https:\/\/www.hostvento.com\/kb\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.hostvento.com\/kb\/wp-json\/wp\/v2\/comments?post=16046"}],"version-history":[{"count":3,"href":"https:\/\/www.hostvento.com\/kb\/wp-json\/wp\/v2\/docs\/16046\/revisions"}],"predecessor-version":[{"id":20432,"href":"https:\/\/www.hostvento.com\/kb\/wp-json\/wp\/v2\/docs\/16046\/revisions\/20432"}],"up":[{"embeddable":true,"href":"https:\/\/www.hostvento.com\/kb\/wp-json\/wp\/v2\/docs\/23377"}],"wp:attachment":[{"href":"https:\/\/www.hostvento.com\/kb\/wp-json\/wp\/v2\/media?parent=16046"}],"wp:term":[{"taxonomy":"doc_tag","embeddable":true,"href":"https:\/\/www.hostvento.com\/kb\/wp-json\/wp\/v2\/doc_tag?post=16046"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}