{"id":2019,"date":"2021-06-10T15:00:54","date_gmt":"2021-06-10T12:00:54","guid":{"rendered":"https:\/\/www.scalahosting.com\/kb\/?p=2019"},"modified":"2023-06-13T14:02:02","modified_gmt":"2023-06-13T11:02:02","slug":"simple-domain-name-masking","status":"publish","type":"post","link":"https:\/\/www.scalahosting.com\/kb\/simple-domain-name-masking\/","title":{"rendered":"Simple Domain Name Masking"},"content":{"rendered":"\n<p><span style=\"font-weight: 400;\">Domain name masking displays the content of a website other than that of <\/span><b>the URL<\/b><span style=\"font-weight: 400;\">. For instance, when your visitors type in www.yourwebsite.com, they will be shown content from www.anotherwebsite.com.&nbsp;<\/span><\/p>\n\n\n\n<p><span style=\"font-weight: 400;\">There are a few ways you can achieve domain name masking, but<\/span><span style=\"font-weight: 400;\"> the simplest technique is <\/span><b>to rewrite the URL using your .htaccess file.<\/b><\/p>\n\n\n\n<p><span style=\"font-weight: 400;\">The .htaccess file is located in the document root folder of your primary domain, and you can edit it directly on the server with the help of your control panel&#8217;s File Manager.<br><\/span><\/p>\n\n\n<div class=\"wp-block-image mpg-gallery\">\n<figure class=\"aligncenter\"><img decoding=\"async\" width=\"1024\" height=\"737\" src=\"https:\/\/www.scalahosting.com\/kb\/wp-content\/uploads\/2021\/06\/public_html-1024x737.jpg\" alt=\"Simple Domain Name Masking\" class=\"wp-image-2020\" srcset=\"https:\/\/www.scalahosting.com\/kb\/wp-content\/uploads\/2021\/06\/public_html-1024x737.jpg 1024w, https:\/\/www.scalahosting.com\/kb\/wp-content\/uploads\/2021\/06\/public_html-300x216.jpg 300w, https:\/\/www.scalahosting.com\/kb\/wp-content\/uploads\/2021\/06\/public_html-768x552.jpg 768w, https:\/\/www.scalahosting.com\/kb\/wp-content\/uploads\/2021\/06\/public_html.jpg 1500w\" 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><b>You can find the code you need to add below:<br><\/b><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><span style=\"font-weight: 400;\">RewriteEngine On<\/span><\/li>\n\n\n\n<li><span style=\"font-weight: 400;\">RewriteRule \u201c^currentfolder\/?$ \/newfolder<\/span><\/li>\n<\/ul>\n\n\n\n<p><b>Replace \u201ccurrentfolder\u201d with the directory the content<\/b><span style=\"font-weight: 400;\"> is currently in and \u201cnewfolder: with the folder of the new content you wish to present when the URL is loaded.&nbsp;<\/span><\/p>\n\n\n\n<p><span style=\"font-weight: 400;\">When done, remember to save the file.<\/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\" target=\"_blank\" rel=\"noreferrer noopener\"><img decoding=\"async\" width=\"600\" height=\"100\" src=\"https:\/\/www.scalahosting.com\/kb\/wp-content\/uploads\/2022\/07\/whois_banner_horizontal.png\" alt=\"Simple Domain Name Masking\" 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>Domain name masking displays the content of a website other than that of the URL. For instance, when your visitors type in www.yourwebsite.com, they will be shown content from www.anotherwebsite.com.&nbsp; There are a few ways you can achieve domain name masking, but the simplest technique is to rewrite the URL using your .htaccess file. 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-2019","post","type-post","status-publish","format-standard","hentry","category-dns"],"acf":[],"_links":{"self":[{"href":"https:\/\/www.scalahosting.com\/kb\/wp-json\/wp\/v2\/posts\/2019","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=2019"}],"version-history":[{"count":5,"href":"https:\/\/www.scalahosting.com\/kb\/wp-json\/wp\/v2\/posts\/2019\/revisions"}],"predecessor-version":[{"id":5617,"href":"https:\/\/www.scalahosting.com\/kb\/wp-json\/wp\/v2\/posts\/2019\/revisions\/5617"}],"wp:attachment":[{"href":"https:\/\/www.scalahosting.com\/kb\/wp-json\/wp\/v2\/media?parent=2019"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.scalahosting.com\/kb\/wp-json\/wp\/v2\/categories?post=2019"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.scalahosting.com\/kb\/wp-json\/wp\/v2\/tags?post=2019"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}