{"id":75,"date":"2012-07-04T06:03:54","date_gmt":"2012-07-04T06:03:54","guid":{"rendered":"http:\/\/www.milesweb.co.uk\/hosting-faqs\/?p=75"},"modified":"2022-02-22T10:04:05","modified_gmt":"2022-02-22T10:04:05","slug":"how-to-redirect-one-domain-to-another-domain-name","status":"publish","type":"post","link":"https:\/\/www.milesweb.co.uk\/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 domain name 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 hosting provider is not helping you, please feel free to sign up for our <a title=\"cPanel Hosting\" href=\"https:\/\/www.milesweb.co.uk\/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 v25.2 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>How to redirect one domain to another domain name ? - Web Hosting FAQs by MilesWeb<\/title>\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.co.uk\/hosting-faqs\/how-to-redirect-one-domain-to-another-domain-name\/\" \/>\n<meta property=\"og:locale\" content=\"en_GB\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to redirect one domain to another domain name ? - Web Hosting FAQs by MilesWeb\" \/>\n<meta property=\"og:description\" content=\"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;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.milesweb.co.uk\/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=\"2022-02-22T10:04:05+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=\"Estimated 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\":\"WebPage\",\"@id\":\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/how-to-redirect-one-domain-to-another-domain-name\/\",\"url\":\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/how-to-redirect-one-domain-to-another-domain-name\/\",\"name\":\"How to redirect one domain to another domain name ? - Web Hosting FAQs by MilesWeb\",\"isPartOf\":{\"@id\":\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/#website\"},\"datePublished\":\"2012-07-04T06:03:54+00:00\",\"dateModified\":\"2022-02-22T10:04:05+00:00\",\"author\":{\"@id\":\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/#\/schema\/person\/90143c7d8df4b4de36b3dbb0bb272f69\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/how-to-redirect-one-domain-to-another-domain-name\/#breadcrumb\"},\"inLanguage\":\"en-GB\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/how-to-redirect-one-domain-to-another-domain-name\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/how-to-redirect-one-domain-to-another-domain-name\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to redirect one domain to another domain name ?\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/#website\",\"url\":\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/\",\"name\":\"Web Hosting FAQs by MilesWeb\",\"description\":\"\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-GB\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/#\/schema\/person\/90143c7d8df4b4de36b3dbb0bb272f69\",\"name\":\"admin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-GB\",\"@id\":\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/42e5b55cc2772cd685c8803f6f7f854b?s=96&d=blank&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/42e5b55cc2772cd685c8803f6f7f854b?s=96&d=blank&r=g\",\"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.co.uk\/hosting-faqs\/author\/admin\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to redirect one domain to another domain name ? - Web Hosting FAQs by MilesWeb","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.co.uk\/hosting-faqs\/how-to-redirect-one-domain-to-another-domain-name\/","og_locale":"en_GB","og_type":"article","og_title":"How to redirect one domain to another domain name ? - Web Hosting FAQs by MilesWeb","og_description":"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;]","og_url":"https:\/\/www.milesweb.co.uk\/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":"2022-02-22T10:04:05+00:00","author":"admin","twitter_misc":{"Written by":"admin","Estimated reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/how-to-redirect-one-domain-to-another-domain-name\/","url":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/how-to-redirect-one-domain-to-another-domain-name\/","name":"How to redirect one domain to another domain name ? - Web Hosting FAQs by MilesWeb","isPartOf":{"@id":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/#website"},"datePublished":"2012-07-04T06:03:54+00:00","dateModified":"2022-02-22T10:04:05+00:00","author":{"@id":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/#\/schema\/person\/90143c7d8df4b4de36b3dbb0bb272f69"},"breadcrumb":{"@id":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/how-to-redirect-one-domain-to-another-domain-name\/#breadcrumb"},"inLanguage":"en-GB","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.milesweb.co.uk\/hosting-faqs\/how-to-redirect-one-domain-to-another-domain-name\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/how-to-redirect-one-domain-to-another-domain-name\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/"},{"@type":"ListItem","position":2,"name":"How to redirect one domain to another domain name ?"}]},{"@type":"WebSite","@id":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/#website","url":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/","name":"Web Hosting FAQs by MilesWeb","description":"","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-GB"},{"@type":"Person","@id":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/#\/schema\/person\/90143c7d8df4b4de36b3dbb0bb272f69","name":"admin","image":{"@type":"ImageObject","inLanguage":"en-GB","@id":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/42e5b55cc2772cd685c8803f6f7f854b?s=96&d=blank&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/42e5b55cc2772cd685c8803f6f7f854b?s=96&d=blank&r=g","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.co.uk\/hosting-faqs\/author\/admin\/"}]}},"views":1193,"_links":{"self":[{"href":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/wp-json\/wp\/v2\/posts\/75","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/wp-json\/wp\/v2\/comments?post=75"}],"version-history":[{"count":4,"href":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/wp-json\/wp\/v2\/posts\/75\/revisions"}],"predecessor-version":[{"id":14000,"href":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/wp-json\/wp\/v2\/posts\/75\/revisions\/14000"}],"wp:attachment":[{"href":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/wp-json\/wp\/v2\/media?parent=75"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/wp-json\/wp\/v2\/categories?post=75"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/wp-json\/wp\/v2\/tags?post=75"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}