{"id":9443,"date":"2020-05-14T05:34:56","date_gmt":"2020-05-14T05:34:56","guid":{"rendered":"https:\/\/www.milesweb.in\/hosting-faqs\/?p=9443"},"modified":"2020-05-14T05:34:56","modified_gmt":"2020-05-14T05:34:56","slug":"url-masking-with-htaccess","status":"publish","type":"post","link":"https:\/\/www.milesweb.in\/hosting-faqs\/url-masking-with-htaccess\/","title":{"rendered":"How to do URL Masking with .htaccess?"},"content":{"rendered":"<p>URL masking means visitors to your domain name will be directed\u00a0to your destination website, but the URL in their browser address bar will remain the same.<\/p>\n<p>The below method enables you to mask a particular part of your website&#8217;s address.<\/p>\n<p>For example, if you browse:\u00a0<strong>http:\/\/yourdomain.com\/something<\/strong><\/p>\n<p>the content that will be displayed can be the one under: <strong>http:\/\/yourdomain.com\/something\/else<\/strong><\/p>\n<p>The URL in the visitor&#8217;s address bar will still remain as:<strong> http:\/\/yourdomain.com\/something<\/strong>.<\/p>\n<p>This can be done by adding the below rules into your website&#8217;s .htaccess file:<\/p>\n<pre class=\"lang:default decode:true \">RewriteEngine On\r\nRewriteRule ^something\/?$ \/something\/else\/<\/pre>\n<p>Ensure that you substitute <strong>something<\/strong> and <strong>else<\/strong> with the actual directories that you are using on your website.<\/p>\n<p>You can also modify the .htaccess file in your MilesWeb hosting account via the <strong>File Manager<\/strong> in cPanel.<\/p>\n<p><strong>Also Read<\/strong><br \/>\n<a href=\"https:\/\/www.milesweb.in\/hosting-faqs\/how-to-do-domain-name-masking\/\" target=\"_blank\" rel=\"noopener\"><strong>How to do Domain name Masking?<\/strong><\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>URL masking means visitors to your domain name will be directed\u00a0to your destination website, but the URL in their browser address bar will remain the same. The below method enables you to mask a particular part of your website&#8217;s address. For example, if you browse:\u00a0http:\/\/yourdomain.com\/something the content that will be displayed can be the one [&hellip;]<\/p>\n","protected":false},"author":16,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[41],"tags":[1444,731,1445],"class_list":["post-9443","post","type-post","status-publish","format-standard","placeholder-for-hentry","category-howtos","tag-url","tag-url-masking","tag-url-masking-with-htaccess"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.1.1 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>How to do URL Masking with .htaccess?<\/title>\n<meta name=\"description\" content=\"URL masking means visitors to your domain name will be directed\u00a0to your destination website, but the URL in their browser address bar will remain the same.\" \/>\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.in\/hosting-faqs\/url-masking-with-htaccess\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to do URL Masking with .htaccess?\" \/>\n<meta property=\"og:description\" content=\"URL masking means visitors to your domain name will be directed\u00a0to your destination website, but the URL in their browser address bar will remain the same.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.milesweb.in\/hosting-faqs\/url-masking-with-htaccess\/\" \/>\n<meta property=\"og:site_name\" content=\"Web Hosting FAQs by MilesWeb\" \/>\n<meta property=\"article:published_time\" content=\"2020-05-14T05:34:56+00:00\" \/>\n<meta name=\"author\" content=\"Pallavi Godse\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Pallavi Godse\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/www.milesweb.in\/hosting-faqs\/url-masking-with-htaccess\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.milesweb.in\/hosting-faqs\/url-masking-with-htaccess\/\"},\"author\":{\"name\":\"Pallavi Godse\",\"@id\":\"https:\/\/www.milesweb.in\/hosting-faqs\/#\/schema\/person\/7e3952607fa9eb4e82fea9f7cad9c945\"},\"headline\":\"How to do URL Masking with .htaccess?\",\"datePublished\":\"2020-05-14T05:34:56+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.milesweb.in\/hosting-faqs\/url-masking-with-htaccess\/\"},\"wordCount\":149,\"commentCount\":0,\"keywords\":[\"url\",\"URL masking\",\"url masking with htaccess\"],\"articleSection\":[\"How-Tos\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/www.milesweb.in\/hosting-faqs\/url-masking-with-htaccess\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.milesweb.in\/hosting-faqs\/url-masking-with-htaccess\/\",\"url\":\"https:\/\/www.milesweb.in\/hosting-faqs\/url-masking-with-htaccess\/\",\"name\":\"How to do URL Masking with .htaccess?\",\"isPartOf\":{\"@id\":\"https:\/\/www.milesweb.in\/hosting-faqs\/#website\"},\"datePublished\":\"2020-05-14T05:34:56+00:00\",\"author\":{\"@id\":\"https:\/\/www.milesweb.in\/hosting-faqs\/#\/schema\/person\/7e3952607fa9eb4e82fea9f7cad9c945\"},\"description\":\"URL masking means visitors to your domain name will be directed\u00a0to your destination website, but the URL in their browser address bar will remain the same.\",\"breadcrumb\":{\"@id\":\"https:\/\/www.milesweb.in\/hosting-faqs\/url-masking-with-htaccess\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.milesweb.in\/hosting-faqs\/url-masking-with-htaccess\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.milesweb.in\/hosting-faqs\/url-masking-with-htaccess\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.milesweb.in\/hosting-faqs\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to do URL Masking with .htaccess?\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.milesweb.in\/hosting-faqs\/#website\",\"url\":\"https:\/\/www.milesweb.in\/hosting-faqs\/\",\"name\":\"Web Hosting FAQs by MilesWeb\",\"description\":\"\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.milesweb.in\/hosting-faqs\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.milesweb.in\/hosting-faqs\/#\/schema\/person\/7e3952607fa9eb4e82fea9f7cad9c945\",\"name\":\"Pallavi Godse\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.milesweb.in\/hosting-faqs\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/3602d0ac1ab89332aea8205dcf474af4ff4eb319cfd584544038908cd5e4c966?s=96&d=blank&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/3602d0ac1ab89332aea8205dcf474af4ff4eb319cfd584544038908cd5e4c966?s=96&d=blank&r=g\",\"caption\":\"Pallavi Godse\"},\"description\":\"Pallavi is a Digital Marketing Executive at MilesWeb and has an experience of over 4 years in content development. She is interested in writing engaging content on business, technology, web hosting and other topics related to information technology.\",\"sameAs\":[\"https:\/\/www.milesweb.in\"],\"url\":\"https:\/\/www.milesweb.in\/hosting-faqs\/author\/pallavi\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to do URL Masking with .htaccess?","description":"URL masking means visitors to your domain name will be directed\u00a0to your destination website, but the URL in their browser address bar will remain the same.","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.in\/hosting-faqs\/url-masking-with-htaccess\/","og_locale":"en_US","og_type":"article","og_title":"How to do URL Masking with .htaccess?","og_description":"URL masking means visitors to your domain name will be directed\u00a0to your destination website, but the URL in their browser address bar will remain the same.","og_url":"https:\/\/www.milesweb.in\/hosting-faqs\/url-masking-with-htaccess\/","og_site_name":"Web Hosting FAQs by MilesWeb","article_published_time":"2020-05-14T05:34:56+00:00","author":"Pallavi Godse","twitter_misc":{"Written by":"Pallavi Godse","Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.milesweb.in\/hosting-faqs\/url-masking-with-htaccess\/#article","isPartOf":{"@id":"https:\/\/www.milesweb.in\/hosting-faqs\/url-masking-with-htaccess\/"},"author":{"name":"Pallavi Godse","@id":"https:\/\/www.milesweb.in\/hosting-faqs\/#\/schema\/person\/7e3952607fa9eb4e82fea9f7cad9c945"},"headline":"How to do URL Masking with .htaccess?","datePublished":"2020-05-14T05:34:56+00:00","mainEntityOfPage":{"@id":"https:\/\/www.milesweb.in\/hosting-faqs\/url-masking-with-htaccess\/"},"wordCount":149,"commentCount":0,"keywords":["url","URL masking","url masking with htaccess"],"articleSection":["How-Tos"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.milesweb.in\/hosting-faqs\/url-masking-with-htaccess\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.milesweb.in\/hosting-faqs\/url-masking-with-htaccess\/","url":"https:\/\/www.milesweb.in\/hosting-faqs\/url-masking-with-htaccess\/","name":"How to do URL Masking with .htaccess?","isPartOf":{"@id":"https:\/\/www.milesweb.in\/hosting-faqs\/#website"},"datePublished":"2020-05-14T05:34:56+00:00","author":{"@id":"https:\/\/www.milesweb.in\/hosting-faqs\/#\/schema\/person\/7e3952607fa9eb4e82fea9f7cad9c945"},"description":"URL masking means visitors to your domain name will be directed\u00a0to your destination website, but the URL in their browser address bar will remain the same.","breadcrumb":{"@id":"https:\/\/www.milesweb.in\/hosting-faqs\/url-masking-with-htaccess\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.milesweb.in\/hosting-faqs\/url-masking-with-htaccess\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.milesweb.in\/hosting-faqs\/url-masking-with-htaccess\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.milesweb.in\/hosting-faqs\/"},{"@type":"ListItem","position":2,"name":"How to do URL Masking with .htaccess?"}]},{"@type":"WebSite","@id":"https:\/\/www.milesweb.in\/hosting-faqs\/#website","url":"https:\/\/www.milesweb.in\/hosting-faqs\/","name":"Web Hosting FAQs by MilesWeb","description":"","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.milesweb.in\/hosting-faqs\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/www.milesweb.in\/hosting-faqs\/#\/schema\/person\/7e3952607fa9eb4e82fea9f7cad9c945","name":"Pallavi Godse","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.milesweb.in\/hosting-faqs\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/3602d0ac1ab89332aea8205dcf474af4ff4eb319cfd584544038908cd5e4c966?s=96&d=blank&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/3602d0ac1ab89332aea8205dcf474af4ff4eb319cfd584544038908cd5e4c966?s=96&d=blank&r=g","caption":"Pallavi Godse"},"description":"Pallavi is a Digital Marketing Executive at MilesWeb and has an experience of over 4 years in content development. She is interested in writing engaging content on business, technology, web hosting and other topics related to information technology.","sameAs":["https:\/\/www.milesweb.in"],"url":"https:\/\/www.milesweb.in\/hosting-faqs\/author\/pallavi\/"}]}},"_links":{"self":[{"href":"https:\/\/www.milesweb.in\/hosting-faqs\/wp-json\/wp\/v2\/posts\/9443","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.milesweb.in\/hosting-faqs\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.milesweb.in\/hosting-faqs\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.milesweb.in\/hosting-faqs\/wp-json\/wp\/v2\/users\/16"}],"replies":[{"embeddable":true,"href":"https:\/\/www.milesweb.in\/hosting-faqs\/wp-json\/wp\/v2\/comments?post=9443"}],"version-history":[{"count":1,"href":"https:\/\/www.milesweb.in\/hosting-faqs\/wp-json\/wp\/v2\/posts\/9443\/revisions"}],"predecessor-version":[{"id":9446,"href":"https:\/\/www.milesweb.in\/hosting-faqs\/wp-json\/wp\/v2\/posts\/9443\/revisions\/9446"}],"wp:attachment":[{"href":"https:\/\/www.milesweb.in\/hosting-faqs\/wp-json\/wp\/v2\/media?parent=9443"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.milesweb.in\/hosting-faqs\/wp-json\/wp\/v2\/categories?post=9443"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.milesweb.in\/hosting-faqs\/wp-json\/wp\/v2\/tags?post=9443"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}