{"id":1882,"date":"2021-05-28T16:33:26","date_gmt":"2021-05-28T13:33:26","guid":{"rendered":"https:\/\/www.scalahosting.com\/kb\/?p=1882"},"modified":"2023-06-14T09:41:53","modified_gmt":"2023-06-14T06:41:53","slug":"forward-my-domain","status":"publish","type":"post","link":"https:\/\/www.scalahosting.com\/kb\/forward-my-domain\/","title":{"rendered":"Forward my domain"},"content":{"rendered":"\n<p><span style=\"font-weight: 400;\">In many ways, <\/span><b>domain forwarding works like a regular web page redirect<\/b><span style=\"font-weight: 400;\">. It&#8217;s been around for a while, and you are usually presented with multiple different mechanisms for setting it up. Choosing your approach is not a decision you should take lightly, as it can have a not <\/span><b>insignificant impact on your <\/b><a href=\"https:\/\/www.scalahosting.com\/blog\/5-tips-to-make-your-website-faster\/\"><b>website&#8217;s performance.<\/b><\/a><\/p>\n\n\n\n<p><span style=\"font-weight: 400;\">The thing you need to pay attention to the most is the<\/span><b> type of redirect being set up.<\/b><span style=\"font-weight: 400;\"> Registrars and hosting providers often let you configure domain forwarding without telling you how exactly they&#8217;re <\/span><b>redirecting users.<\/b><\/p>\n\n\n\n<p><b>Generally speaking, domain forwarding can involve two types of HTTP redirection:<\/b><b><\/b><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><b>301 redirect<\/b><span style=\"font-weight: 400;\"> \u2013 the user&#8217;s browser is informed that the content has been moved <\/span><b>permanently<\/b><\/li>\n\n\n\n<li><b>302 redirect<\/b><span style=\"font-weight: 400;\"> \u2013 the server responds with a &#8220;found&#8221; HTTP response, indicating a <\/span><b>temporary<\/b><span style=\"font-weight: 400;\"> redirect<\/span><\/li>\n<\/ul>\n\n\n\n<p><span style=\"font-weight: 400;\">There&#8217;s no difference between the two in terms of user experience, but for <\/span><b>SEO purposes<\/b><span style=\"font-weight: 400;\">, it&#8217;s essential to ensure your domain forwarding is<\/span><b> set up via a 301 redirect. <\/b><span style=\"font-weight: 400;\">The best way to configure it is to modify the .htaccess file in your hosting account.<\/span><\/p>\n\n\n\n<p><span style=\"font-weight: 400;\">First, make sure <\/span><b>your domain is pointed to your ScalaHosting account<\/b><span style=\"font-weight: 400;\">. If you&#8217;ve recently modified its DNS settings, you might need to give it up to <\/span><b>48 hours<\/b><span style=\"font-weight: 400;\"> for the changes to propagate throughout the world.<\/span><\/p>\n\n\n\n<p><span style=\"font-weight: 400;\">Use an<\/span> <a href=\"https:\/\/www.scalahosting.com\/kb\/what-is-ftp\/\"><b>FTP client<\/b><\/a><span style=\"font-weight: 400;\"> or your control panel&#8217;s File Manager to open the document root folder of your domain <\/span><i><span style=\"font-weight: 400;\">(by default, it&#8217;s public_html)<\/span><\/i><span style=\"font-weight: 400;\">. Modifying the .htaccess file can<\/span><b> break your website,<\/b><span style=\"font-weight: 400;\"> so before making any changes to it,<\/span><b> it&#8217;s important to have a backup<\/b><span style=\"font-weight: 400;\">, either locally or on the server.<\/span><\/p>\n\n\n\n<p><b>Add the following code to the .htaccess file:<\/b><i><\/i><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><i><span style=\"font-weight: 400;\">RewriteEngine on<\/span><\/i><\/li>\n<\/ul>\n\n\n\n<p><i><span style=\"font-weight: 400;\">RewriteCond %{HTTP_HOST} ^domain1.com [NC,OR]<\/span><\/i><\/p>\n\n\n\n<p><i><span style=\"font-weight: 400;\">RewriteCond %{HTTP_HOST} ^www.domain1.com [NC]<\/span><\/i><\/p>\n\n\n\n<p><i><span style=\"font-weight: 400;\">RewriteRule ^(.*)$ https:\/\/domain2.com\/ [L,R=301,N]<\/span><\/i><\/p>\n\n\n\n<p><span style=\"font-weight: 400;\">Swap <\/span><i><span style=\"font-weight: 400;\">domain1.com <\/span><\/i><span style=\"font-weight: 400;\">for your domain and <\/span><i><span style=\"font-weight: 400;\">domain2.com <\/span><\/i><span style=\"font-weight: 400;\">for the domain you want to forward to and <\/span><b>save the changes to set up the redirect<\/b><span style=\"font-weight: 400;\">. If you don&#8217;t see it working immediately, you might need to clear your browser&#8217;s cache.<\/span><\/p>\n\n\n\n<p>You have another option for setting up a redirect for your domain &#8211; through your web hosting control panel&#8217;s Graphical User Interface. Here, for example, is how it works with SPanel &#8211; ScalaHosting&#8217;s proprietary management platform.<\/p>\n\n\n\n<p>First, you need to log into <strong>SPanel&#8217;s User Interface<\/strong>. The default login URL is <em><strong>yourdomain.com\/spanel<\/strong><\/em>.<\/p>\n\n\n<div class=\"wp-block-image mpg-gallery\">\n<figure class=\"aligncenter\"><img decoding=\"async\" width=\"453\" height=\"456\" src=\"https:\/\/www.scalahosting.com\/kb\/wp-content\/uploads\/2022\/01\/40.png\" alt=\"Forward my domain\" class=\"wp-image-2898\" srcset=\"https:\/\/www.scalahosting.com\/kb\/wp-content\/uploads\/2022\/01\/40.png 453w, https:\/\/www.scalahosting.com\/kb\/wp-content\/uploads\/2022\/01\/40-298x300.png 298w, https:\/\/www.scalahosting.com\/kb\/wp-content\/uploads\/2022\/01\/40-150x150.png 150w\" 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>Next, you need to click the <strong>Redirects <\/strong>icon under the <strong>Domains<\/strong> section on SPanel&#8217;s homepage.<\/p>\n\n\n<div class=\"wp-block-image mpg-gallery\">\n<figure class=\"aligncenter\"><img decoding=\"async\" width=\"848\" height=\"234\" src=\"https:\/\/www.scalahosting.com\/kb\/wp-content\/uploads\/2021\/05\/309.png\" alt=\"Forward my domain\" class=\"wp-image-3890\" srcset=\"https:\/\/www.scalahosting.com\/kb\/wp-content\/uploads\/2021\/05\/309.png 848w, https:\/\/www.scalahosting.com\/kb\/wp-content\/uploads\/2021\/05\/309-300x83.png 300w, https:\/\/www.scalahosting.com\/kb\/wp-content\/uploads\/2021\/05\/309-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>To set up a redirect, simply pick the <strong>type of redirect<\/strong> from the first drop-down menu and enter <strong>the source and destination URLs<\/strong>.<\/p>\n\n\n<div class=\"wp-block-image mpg-gallery\">\n<figure class=\"aligncenter\"><img decoding=\"async\" width=\"900\" height=\"463\" src=\"https:\/\/www.scalahosting.com\/kb\/wp-content\/uploads\/2021\/05\/310.png\" alt=\"Forward my domain\" class=\"wp-image-3891\" srcset=\"https:\/\/www.scalahosting.com\/kb\/wp-content\/uploads\/2021\/05\/310.png 900w, https:\/\/www.scalahosting.com\/kb\/wp-content\/uploads\/2021\/05\/310-300x154.png 300w, https:\/\/www.scalahosting.com\/kb\/wp-content\/uploads\/2021\/05\/310-768x395.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><span style=\"font-weight: 400;\">If you have any other questions or issues, <\/span><b>feel free to get in touch with our technical support experts,<\/b><span style=\"font-weight: 400;\"> who will be happy to assist you further.<\/span><\/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=\"Forward my domain\" 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>In many ways, domain forwarding works like a regular web page redirect. It&#8217;s been around for a while, and you are usually presented with multiple different mechanisms for setting it up. Choosing your approach is not a decision you should take lightly, as it can have a not insignificant impact on your website&#8217;s performance. The [&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":"","_seopress_titles_desc":"","_seopress_robots_index":"","footnotes":""},"categories":[22],"tags":[],"class_list":["post-1882","post","type-post","status-publish","format-standard","hentry","category-dns"],"acf":[],"_links":{"self":[{"href":"https:\/\/www.scalahosting.com\/kb\/wp-json\/wp\/v2\/posts\/1882","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=1882"}],"version-history":[{"count":7,"href":"https:\/\/www.scalahosting.com\/kb\/wp-json\/wp\/v2\/posts\/1882\/revisions"}],"predecessor-version":[{"id":5631,"href":"https:\/\/www.scalahosting.com\/kb\/wp-json\/wp\/v2\/posts\/1882\/revisions\/5631"}],"wp:attachment":[{"href":"https:\/\/www.scalahosting.com\/kb\/wp-json\/wp\/v2\/media?parent=1882"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.scalahosting.com\/kb\/wp-json\/wp\/v2\/categories?post=1882"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.scalahosting.com\/kb\/wp-json\/wp\/v2\/tags?post=1882"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}