{"id":75,"date":"2012-07-04T06:03:54","date_gmt":"2012-07-04T06:03:54","guid":{"rendered":"http:\/\/www.milesweb.com\/hosting-faqs\/?p=75"},"modified":"2025-04-22T12:12:53","modified_gmt":"2025-04-22T06:42:53","slug":"how-to-redirect-one-domain-to-another-domain-name","status":"publish","type":"post","link":"https:\/\/www.milesweb.in\/hosting-faqs\/how-to-redirect-one-domain-to-another-domain-name\/","title":{"rendered":"How to Redirect One Domain to Another Domain Name?"},"content":{"rendered":"<p>As the name suggests it simply redirects the website to other domain as required.<\/p>\n<p>1. Domain name redirects on <strong>DNS<\/strong> level by using <strong>CNAME records<\/strong>. CNAME stands for Canonical Name &amp; it specifies that the <a href=\"https:\/\/www.milesweb.in\/domains\/\">domain name<\/a> is an alias of another, canonical domain name.<\/p>\n<p>2.<strong> PHP &amp; HTML redirects<\/strong> &#8211; 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<p>For PHP, create a file (index.php for example) and add the below lines in it:<\/p>\n<p><em>&lt;?php<\/em><br \/>\n<em>header( &#8216;Location: http:\/\/www.yoursite.com\/redirect_location&#8217; ) ;<\/em><br \/>\n<em>?&gt;<\/em><\/p>\n<p>For HTML, create a file (index.html for example) with the following content:<\/p>\n<p><em>&lt;META HTTP-EQUIV=&#8221;Refresh&#8221;<\/em><br \/>\n<em>CONTENT=&#8221;0; URL=http:\/\/www.yoursite.com\/redirect_location&#8221;&gt;<\/em><\/p>\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<p>3. You can also use <strong>.htaccess files<\/strong> under the DocumentRoot for the website and set the redirects.<\/p>\n<p>Login to your cPanel, access option Redirects. You can then set the redirects as required.<\/p>\n<p>If you are not able to set redirects or if you are facing any issues and your current <a href=\"https:\/\/www.milesweb.in\">web hosting provider<\/a> is not helping you, please feel free to sign up for our <a title=\"cPanel Hosting\" href=\"https:\/\/www.milesweb.in\/hosting\/cpanel-hosting\"><strong>cPanel hosting<\/strong><\/a> package. <strong>MilesWeb&#8217;s<\/strong> experienced team of professionals will resolve all the issues and also help you to migrate the website from your current host to MilesWeb servers.<\/p>\n<p><span style=\"border-radius: 2px; text-indent: 20px; width: auto; padding: 0px 4px 0px 0px; text-align: center; font: bold 11px\/20px 'Helvetica Neue',Helvetica,sans-serif; color: #ffffff; background: #bd081c no-repeat scroll 3px 50% \/ 14px 14px; position: absolute; opacity: 1; z-index: 8675309; display: none; cursor: pointer;\">Save<\/span><\/p>\n","protected":false},"excerpt":{"rendered":"<p>As the name suggests it simply redirects the website to other domain as required. 1. Domain name redirects on DNS level by using CNAME records. CNAME stands for Canonical Name &amp; it specifies that the domain name is an alias of another, canonical domain name. 2. PHP &amp; HTML redirects &#8211; Instead of .htaccess file [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-75","post","type-post","status-publish","format-standard","placeholder-for-hentry","category-domain-name-dns-issues"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.8 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>How to Redirect One Domain to Another Domain Name?<\/title>\n<meta name=\"description\" content=\"If you are not able to set redirects or if you are facing any issues and your current hosting provider is not helping you,\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.milesweb.in\/hosting-faqs\/how-to-redirect-one-domain-to-another-domain-name\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to Redirect One Domain to Another Domain Name?\" \/>\n<meta property=\"og:description\" content=\"If you are not able to set redirects or if you are facing any issues and your current hosting provider is not helping you,\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.milesweb.in\/hosting-faqs\/how-to-redirect-one-domain-to-another-domain-name\/\" \/>\n<meta property=\"og:site_name\" content=\"Web Hosting FAQs by MilesWeb\" \/>\n<meta property=\"article:published_time\" content=\"2012-07-04T06:03:54+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2025-04-22T06:42:53+00:00\" \/>\n<meta name=\"author\" content=\"Admin\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Admin\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.milesweb.in\\\/hosting-faqs\\\/how-to-redirect-one-domain-to-another-domain-name\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.milesweb.in\\\/hosting-faqs\\\/how-to-redirect-one-domain-to-another-domain-name\\\/\"},\"author\":{\"name\":\"Admin\",\"@id\":\"https:\\\/\\\/www.milesweb.in\\\/hosting-faqs\\\/#\\\/schema\\\/person\\\/90143c7d8df4b4de36b3dbb0bb272f69\"},\"headline\":\"How to Redirect One Domain to Another Domain Name?\",\"datePublished\":\"2012-07-04T06:03:54+00:00\",\"dateModified\":\"2025-04-22T06:42:53+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.milesweb.in\\\/hosting-faqs\\\/how-to-redirect-one-domain-to-another-domain-name\\\/\"},\"wordCount\":263,\"commentCount\":0,\"articleSection\":[\"Domain Name &amp; DNS Issues\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/www.milesweb.in\\\/hosting-faqs\\\/how-to-redirect-one-domain-to-another-domain-name\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.milesweb.in\\\/hosting-faqs\\\/how-to-redirect-one-domain-to-another-domain-name\\\/\",\"url\":\"https:\\\/\\\/www.milesweb.in\\\/hosting-faqs\\\/how-to-redirect-one-domain-to-another-domain-name\\\/\",\"name\":\"How to Redirect One Domain to Another Domain Name?\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.milesweb.in\\\/hosting-faqs\\\/#website\"},\"datePublished\":\"2012-07-04T06:03:54+00:00\",\"dateModified\":\"2025-04-22T06:42:53+00:00\",\"author\":{\"@id\":\"https:\\\/\\\/www.milesweb.in\\\/hosting-faqs\\\/#\\\/schema\\\/person\\\/90143c7d8df4b4de36b3dbb0bb272f69\"},\"description\":\"If you are not able to set redirects or if you are facing any issues and your current hosting provider is not helping you,\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.milesweb.in\\\/hosting-faqs\\\/how-to-redirect-one-domain-to-another-domain-name\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.milesweb.in\\\/hosting-faqs\\\/how-to-redirect-one-domain-to-another-domain-name\\\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.milesweb.in\\\/hosting-faqs\\\/how-to-redirect-one-domain-to-another-domain-name\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.milesweb.in\\\/hosting-faqs\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to Redirect One Domain to Another Domain Name?\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.milesweb.in\\\/hosting-faqs\\\/#website\",\"url\":\"https:\\\/\\\/www.milesweb.in\\\/hosting-faqs\\\/\",\"name\":\"Web Hosting FAQs by MilesWeb\",\"description\":\"\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.milesweb.in\\\/hosting-faqs\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.milesweb.in\\\/hosting-faqs\\\/#\\\/schema\\\/person\\\/90143c7d8df4b4de36b3dbb0bb272f69\",\"name\":\"Admin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.milesweb.in\\\/hosting-faqs\\\/wp-content\\\/uploads\\\/2020\\\/02\\\/MilesWeb-Logo-150x150.png\",\"url\":\"https:\\\/\\\/www.milesweb.in\\\/hosting-faqs\\\/wp-content\\\/uploads\\\/2020\\\/02\\\/MilesWeb-Logo-150x150.png\",\"contentUrl\":\"https:\\\/\\\/www.milesweb.in\\\/hosting-faqs\\\/wp-content\\\/uploads\\\/2020\\\/02\\\/MilesWeb-Logo-150x150.png\",\"caption\":\"Admin\"},\"description\":\"With over 10+ years of experience in the web hosting industry, I have achieved extensive exposure to result-oriented methodologies. And expertise in different domains like Datacentre Services, Cloud computing technology, Web hosting industry and many more.\",\"url\":\"https:\\\/\\\/www.milesweb.in\\\/hosting-faqs\\\/author\\\/admin\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to Redirect One Domain to Another Domain Name?","description":"If you are not able to set redirects or if you are facing any issues and your current hosting provider is not helping you,","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.milesweb.in\/hosting-faqs\/how-to-redirect-one-domain-to-another-domain-name\/","og_locale":"en_US","og_type":"article","og_title":"How to Redirect One Domain to Another Domain Name?","og_description":"If you are not able to set redirects or if you are facing any issues and your current hosting provider is not helping you,","og_url":"https:\/\/www.milesweb.in\/hosting-faqs\/how-to-redirect-one-domain-to-another-domain-name\/","og_site_name":"Web Hosting FAQs by MilesWeb","article_published_time":"2012-07-04T06:03:54+00:00","article_modified_time":"2025-04-22T06:42:53+00:00","author":"Admin","twitter_misc":{"Written by":"Admin","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.milesweb.in\/hosting-faqs\/how-to-redirect-one-domain-to-another-domain-name\/#article","isPartOf":{"@id":"https:\/\/www.milesweb.in\/hosting-faqs\/how-to-redirect-one-domain-to-another-domain-name\/"},"author":{"name":"Admin","@id":"https:\/\/www.milesweb.in\/hosting-faqs\/#\/schema\/person\/90143c7d8df4b4de36b3dbb0bb272f69"},"headline":"How to Redirect One Domain to Another Domain Name?","datePublished":"2012-07-04T06:03:54+00:00","dateModified":"2025-04-22T06:42:53+00:00","mainEntityOfPage":{"@id":"https:\/\/www.milesweb.in\/hosting-faqs\/how-to-redirect-one-domain-to-another-domain-name\/"},"wordCount":263,"commentCount":0,"articleSection":["Domain Name &amp; DNS Issues"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.milesweb.in\/hosting-faqs\/how-to-redirect-one-domain-to-another-domain-name\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.milesweb.in\/hosting-faqs\/how-to-redirect-one-domain-to-another-domain-name\/","url":"https:\/\/www.milesweb.in\/hosting-faqs\/how-to-redirect-one-domain-to-another-domain-name\/","name":"How to Redirect One Domain to Another Domain Name?","isPartOf":{"@id":"https:\/\/www.milesweb.in\/hosting-faqs\/#website"},"datePublished":"2012-07-04T06:03:54+00:00","dateModified":"2025-04-22T06:42:53+00:00","author":{"@id":"https:\/\/www.milesweb.in\/hosting-faqs\/#\/schema\/person\/90143c7d8df4b4de36b3dbb0bb272f69"},"description":"If you are not able to set redirects or if you are facing any issues and your current hosting provider is not helping you,","breadcrumb":{"@id":"https:\/\/www.milesweb.in\/hosting-faqs\/how-to-redirect-one-domain-to-another-domain-name\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.milesweb.in\/hosting-faqs\/how-to-redirect-one-domain-to-another-domain-name\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.milesweb.in\/hosting-faqs\/how-to-redirect-one-domain-to-another-domain-name\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.milesweb.in\/hosting-faqs\/"},{"@type":"ListItem","position":2,"name":"How to Redirect One Domain to Another Domain Name?"}]},{"@type":"WebSite","@id":"https:\/\/www.milesweb.in\/hosting-faqs\/#website","url":"https:\/\/www.milesweb.in\/hosting-faqs\/","name":"Web Hosting FAQs by MilesWeb","description":"","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.milesweb.in\/hosting-faqs\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/www.milesweb.in\/hosting-faqs\/#\/schema\/person\/90143c7d8df4b4de36b3dbb0bb272f69","name":"Admin","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.milesweb.in\/hosting-faqs\/wp-content\/uploads\/2020\/02\/MilesWeb-Logo-150x150.png","url":"https:\/\/www.milesweb.in\/hosting-faqs\/wp-content\/uploads\/2020\/02\/MilesWeb-Logo-150x150.png","contentUrl":"https:\/\/www.milesweb.in\/hosting-faqs\/wp-content\/uploads\/2020\/02\/MilesWeb-Logo-150x150.png","caption":"Admin"},"description":"With over 10+ years of experience in the web hosting industry, I have achieved extensive exposure to result-oriented methodologies. And expertise in different domains like Datacentre Services, Cloud computing technology, Web hosting industry and many more.","url":"https:\/\/www.milesweb.in\/hosting-faqs\/author\/admin\/"}]}},"_links":{"self":[{"href":"https:\/\/www.milesweb.in\/hosting-faqs\/wp-json\/wp\/v2\/posts\/75","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.milesweb.in\/hosting-faqs\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.milesweb.in\/hosting-faqs\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.milesweb.in\/hosting-faqs\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.milesweb.in\/hosting-faqs\/wp-json\/wp\/v2\/comments?post=75"}],"version-history":[{"count":7,"href":"https:\/\/www.milesweb.in\/hosting-faqs\/wp-json\/wp\/v2\/posts\/75\/revisions"}],"predecessor-version":[{"id":19225,"href":"https:\/\/www.milesweb.in\/hosting-faqs\/wp-json\/wp\/v2\/posts\/75\/revisions\/19225"}],"wp:attachment":[{"href":"https:\/\/www.milesweb.in\/hosting-faqs\/wp-json\/wp\/v2\/media?parent=75"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.milesweb.in\/hosting-faqs\/wp-json\/wp\/v2\/categories?post=75"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.milesweb.in\/hosting-faqs\/wp-json\/wp\/v2\/tags?post=75"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}