{"id":2543,"date":"2019-09-30T17:37:06","date_gmt":"2019-09-30T17:37:06","guid":{"rendered":"https:\/\/chemicloud.com\/kb\/?post_type=ht_kb&#038;p=2543"},"modified":"2020-03-25T14:42:48","modified_gmt":"2020-03-25T14:42:48","slug":"how-to-set-up-url-masking","status":"publish","type":"ht_kb","link":"https:\/\/chemicloud.com\/kb\/article\/how-to-set-up-url-masking\/","title":{"rendered":"How to Set Up URL Masking"},"content":{"rendered":"<p>At times, you may have a site created on a different domain name or directory and don\u2019t want your visitors to see the full path to your files.<\/p>\n<p>Fortunately, with just some simple steps, you can set up URL masking to have your visitors see what you want them to see without having to show them the full URL where the files are actually located. You would merely need to follow these steps.<\/p>\n<p>For this example, we will have yourdomain.com show the contents of yourdomain.net\/sitefiles however, you can replace these domain names and URLs with your specific domain names and URLs.<\/p>\n<p><strong>1)<\/strong> You would first need to make sure that your site is loading perfectly at domain.net\/sitefiles. If it is loading correctly, you should have no problems.<\/p>\n<p><strong>2)<\/strong> Create an <strong>index.html<\/strong>\u00a0file in the\u00a0<strong>public_html (or www) folder<\/strong> on your yourdomain.com site. Also, <strong>be sure that there is not an \u201cindex.php\u201d file in the same directory<\/strong>\u00a0as that will take precedence over the index.html file you have created and load up when visitors access your site.<\/p>\n<p><strong>3)<\/strong> Add the following text to the index.html file and modify the title and frame src<\/p>\n<pre>&lt;html&gt;\r\n&lt;head&gt;\r\n&lt;title&gt;Your Website Title&lt;\/title&gt;\r\n&lt;\/head&gt;\r\n&lt;frameset rows=\"100%,*\" border=\"0\"&gt;\r\n&lt;frame src=\"http:\/\/yourdomain.net\/sitefiles\/\" frameborder=\"0\" \/&gt;\r\n&lt;frame frameborder=\"0\" noresize \/&gt;\r\n&lt;\/frameset&gt;\r\n&lt;\/html&gt;<\/pre>\n<div class=\"wp_syntax\"><\/div>\n<p>What this will do is create a frame on the domain.com site that will fill the entire page. Then, when your visitors access yourdomain.com, they will only see the content of yourdomain.net\/sitefiles.<\/p>\n<p>And that\u2019s it! You have now created a frame to mask your site&#8217;s URL.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>At times, you may have a site created on a different domain name or directory and don\u2019t want your visitors to see the full path to your files. Fortunately, with just some simple steps, you can set up URL masking to have your visitors see what you want them to&#8230;<\/p>\n","protected":false},"author":10,"featured_media":0,"comment_status":"open","ping_status":"closed","template":"","format":"standard","meta":{"_crdt_document":"","footnotes":""},"ht-kb-category":[34],"ht-kb-tag":[],"class_list":["post-2543","ht_kb","type-ht_kb","status-publish","format-standard","hentry","ht_kb_category-troubleshooting"],"_links":{"self":[{"href":"https:\/\/chemicloud.com\/kb\/wp-json\/wp\/v2\/ht-kb\/2543","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/chemicloud.com\/kb\/wp-json\/wp\/v2\/ht-kb"}],"about":[{"href":"https:\/\/chemicloud.com\/kb\/wp-json\/wp\/v2\/types\/ht_kb"}],"author":[{"embeddable":true,"href":"https:\/\/chemicloud.com\/kb\/wp-json\/wp\/v2\/users\/10"}],"replies":[{"embeddable":true,"href":"https:\/\/chemicloud.com\/kb\/wp-json\/wp\/v2\/comments?post=2543"}],"version-history":[{"count":3,"href":"https:\/\/chemicloud.com\/kb\/wp-json\/wp\/v2\/ht-kb\/2543\/revisions"}],"predecessor-version":[{"id":2546,"href":"https:\/\/chemicloud.com\/kb\/wp-json\/wp\/v2\/ht-kb\/2543\/revisions\/2546"}],"wp:attachment":[{"href":"https:\/\/chemicloud.com\/kb\/wp-json\/wp\/v2\/media?parent=2543"}],"wp:term":[{"taxonomy":"ht_kb_category","embeddable":true,"href":"https:\/\/chemicloud.com\/kb\/wp-json\/wp\/v2\/ht-kb-category?post=2543"},{"taxonomy":"ht_kb_tag","embeddable":true,"href":"https:\/\/chemicloud.com\/kb\/wp-json\/wp\/v2\/ht-kb-tag?post=2543"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}