{"id":2048,"date":"2021-06-10T15:29:32","date_gmt":"2021-06-10T12:29:32","guid":{"rendered":"https:\/\/www.scalahosting.com\/kb\/?p=2048"},"modified":"2025-11-27T11:27:49","modified_gmt":"2025-11-27T09:27:49","slug":"how-do-i-redirect-one-domain-to-another-domain-name","status":"publish","type":"post","link":"https:\/\/www.scalahosting.com\/kb\/how-do-i-redirect-one-domain-to-another-domain-name\/","title":{"rendered":"Redirect One Domain to Another (301)"},"content":{"rendered":"\n<p><b>Redirecting a domain name means pointing one URL<\/b><span style=\"font-weight: 400;\"> 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<\/span><span style=\"font-weight: 400;\">.<\/span><\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span style=\"font-weight: 400;\">Redirect Domains Using .htaccess<\/span><\/h2>\n\n\n<div class=\"wp-block-image mpg-gallery\">\n<figure class=\"aligncenter\"><img decoding=\"async\" width=\"1504\" height=\"683\" src=\"https:\/\/www.scalahosting.com\/kb\/wp-content\/uploads\/2021\/06\/file_manager.jpg\" alt=\"Redirect One Domain to Another (301), Redirect Domains Using .htaccess\" class=\"wp-image-2049\" srcset=\"https:\/\/www.scalahosting.com\/kb\/wp-content\/uploads\/2021\/06\/file_manager.jpg 1504w, https:\/\/www.scalahosting.com\/kb\/wp-content\/uploads\/2021\/06\/file_manager-300x136.jpg 300w, https:\/\/www.scalahosting.com\/kb\/wp-content\/uploads\/2021\/06\/file_manager-1024x465.jpg 1024w, https:\/\/www.scalahosting.com\/kb\/wp-content\/uploads\/2021\/06\/file_manager-768x349.jpg 768w\" sizes=\"(max-width: 361px) 660px, (max-width: 767px) 89vw, (max-width: 1000px) 54vw, (max-width: 1071px) 910px, 1140px\" \/><\/figure>\n<\/div>\n\n\n<p><span style=\"font-weight: 400;\">Log in to your <\/span><a href=\"https:\/\/www.scalahosting.com\/spanel.html\"><b>web hosting control pane<\/b><\/a><span style=\"font-weight: 400;\">l and open the<\/span><b> File Manager.<\/b><span style=\"font-weight: 400;\"> Select your .htaccess file and open it for editing. For domain name redirection, the most typical method is to use a <\/span><b>301 Permanent Redirect<\/b><span style=\"font-weight: 400;\">.<\/span><\/p>\n\n\n\n<p><b>Add the following code to your .htaccess file:<\/b><\/p>\n\n\n\n<p><span style=\"font-weight: 400;\">Redirect 301 \/ http:\/\/domainB.com\/<\/span><\/p>\n\n\n\n<p><span style=\"font-weight: 400;\">If you do not have an<\/span><b> existing .htaccess file,<\/b><span style=\"font-weight: 400;\"> create a blank file using the File Editor and enter the code above. Save it with the filename .htaccess in the document root of your website (usually, the public_html folder). You can also create the file on your local computer with a plain text editor like <strong>Notepad<\/strong> and upload it to the server via FTP or the File Manager<\/span><b>.<\/b><\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>Setting Up a Redirect via SPanel<\/strong><\/h2>\n\n\n\n<p>It&#8217;s also possible to create a redirect via SPanel &#8211; ScalaHosting&#8217;s proprietary VPS management platform. To do it, log into SPanel&#8217;s User Interface and click the <strong>Redirects<\/strong> button under the <strong>Domains<\/strong> section.<\/p>\n\n\n<div class=\"wp-block-image mpg-gallery\">\n<figure class=\"aligncenter\"><img decoding=\"async\" width=\"846\" height=\"234\" src=\"https:\/\/www.scalahosting.com\/kb\/wp-content\/uploads\/2021\/06\/366.png\" alt=\"Redirect One Domain to Another (301), Setting Up a Redirect via SPanel\" class=\"wp-image-4067\" srcset=\"https:\/\/www.scalahosting.com\/kb\/wp-content\/uploads\/2021\/06\/366.png 846w, https:\/\/www.scalahosting.com\/kb\/wp-content\/uploads\/2021\/06\/366-300x83.png 300w, https:\/\/www.scalahosting.com\/kb\/wp-content\/uploads\/2021\/06\/366-768x212.png 768w\" sizes=\"(max-width: 361px) 660px, (max-width: 767px) 89vw, (max-width: 1000px) 54vw, (max-width: 1071px) 910px, 1140px\" \/><\/figure>\n<\/div>\n\n\n<p>Choose the type of redirect and enter the source and destination URLs.<\/p>\n\n\n<div class=\"wp-block-image mpg-gallery\">\n<figure class=\"aligncenter\"><img decoding=\"async\" width=\"876\" height=\"534\" src=\"https:\/\/www.scalahosting.com\/kb\/wp-content\/uploads\/2021\/06\/367.png\" alt=\"Redirect One Domain to Another (301), Setting Up a Redirect via SPanel 2\" class=\"wp-image-4068\" srcset=\"https:\/\/www.scalahosting.com\/kb\/wp-content\/uploads\/2021\/06\/367.png 876w, https:\/\/www.scalahosting.com\/kb\/wp-content\/uploads\/2021\/06\/367-300x183.png 300w, https:\/\/www.scalahosting.com\/kb\/wp-content\/uploads\/2021\/06\/367-768x468.png 768w\" sizes=\"(max-width: 361px) 660px, (max-width: 767px) 89vw, (max-width: 1000px) 54vw, (max-width: 1071px) 910px, 1140px\" \/><\/figure>\n<\/div>\n\n\n<p>All active redirects will be added to the list at the bottom of the page. You can manage them from there.<\/p>\n\n\n\n<p class=\"youtube-player\" id=\"qwGE9xz5eb8\">How To Point a Domain Name To a Web Hosting Provider<\/p>\n\n\n\n<script type=\"application\/ld+json\">\r\n    {\r\n        \"@context\": \"https:\/\/schema.org\",\r\n        \"@type\": \"VideoObject\",\r\n        \"name\": \"How To Point a Domain Name To a Web Hosting Provider\",\r\n        \"description\": \"You can actually buy web hosting and domain name from different providers and just link these two things together. In this video we'll show you exactly how.\",\r\n        \"thumbnailUrl\": [\r\n            \"https:\/\/i3.ytimg.com\/vi\/qwGE9xz5eb8\/maxresdefault.jpg\"\r\n        ],\r\n        \"uploadDate\": \"2022-04-12\",\r\n        \"duration\": \"PT3M45S\",\r\n        \"embedUrl\": \"https:\/\/www.youtube.com\/watch?v=qwGE9xz5eb8\"\r\n    }\r\n<\/script>\n\n\n\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/www.scalahosting.com\/whois.html?utm_source=scalahosting-internal-link&amp;utm_medium=banner&amp;utm_campaign=whois-referral&amp;utm_id=whois-referral\"><img decoding=\"async\" width=\"600\" height=\"100\" src=\"https:\/\/www.scalahosting.com\/kb\/wp-content\/uploads\/2022\/07\/whois_banner_horizontal.png\" alt=\"Redirect One Domain to Another (301), Setting Up a Redirect via SPanel 3\" class=\"wp-image-4915\" srcset=\"https:\/\/www.scalahosting.com\/kb\/wp-content\/uploads\/2022\/07\/whois_banner_horizontal.png 600w, https:\/\/www.scalahosting.com\/kb\/wp-content\/uploads\/2022\/07\/whois_banner_horizontal-300x50.png 300w\" sizes=\"(max-width: 361px) 660px, (max-width: 767px) 89vw, (max-width: 1000px) 54vw, (max-width: 1071px) 910px, 1140px\" \/><\/a><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>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. Redirect Domains Using .htaccess Log in to your web hosting control panel and open the File Manager. Select your .htaccess file and [&hellip;]<\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"_seopress_robots_primary_cat":"none","_seopress_titles_title":"Redirect One Domain to Another (301) | ScalaHosting KB","_seopress_titles_desc":"","_seopress_robots_index":"","footnotes":""},"categories":[10],"tags":[],"class_list":["post-2048","post","type-post","status-publish","format-standard","hentry","category-billing-and-sales"],"acf":[],"_links":{"self":[{"href":"https:\/\/www.scalahosting.com\/kb\/wp-json\/wp\/v2\/posts\/2048","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.scalahosting.com\/kb\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.scalahosting.com\/kb\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.scalahosting.com\/kb\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/www.scalahosting.com\/kb\/wp-json\/wp\/v2\/comments?post=2048"}],"version-history":[{"count":12,"href":"https:\/\/www.scalahosting.com\/kb\/wp-json\/wp\/v2\/posts\/2048\/revisions"}],"predecessor-version":[{"id":5821,"href":"https:\/\/www.scalahosting.com\/kb\/wp-json\/wp\/v2\/posts\/2048\/revisions\/5821"}],"wp:attachment":[{"href":"https:\/\/www.scalahosting.com\/kb\/wp-json\/wp\/v2\/media?parent=2048"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.scalahosting.com\/kb\/wp-json\/wp\/v2\/categories?post=2048"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.scalahosting.com\/kb\/wp-json\/wp\/v2\/tags?post=2048"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}