Htaccess Domain Masking Code
I want to forward mask a domain.
Htaccess domain masking code. To achieve the above an index html file with the following code should be placed in the. Files htaccess order allow deny deny from all files enabling mime types. Domain name masking allows you to show one url in the browser s address bar while another website s content is actually loaded. The actual content that will be displayed can be the one under.
You can also accomplish url masking by rewriting htaccess as below. Since htaccess is a hidden system file please make sure your ftp client is configured to show hidden files. Url masking with htaccess. Htaccess code for domain masking.
You can do that with a simple html page or a php page. Set a temporary 302 redirect using htaccess. I know it s very simple on godaddy but i m trying to do it in. The pattern matching used in the domain name is a regular expression and the dot means something in regex so it has to be escaped using the back slash.
Url masking will produce doublicated content and can cause ranking drops in one or both of the sites. And yes this thread would have gotten you a quicker response if it were posted in the right forum. Just add the following code. This article will explain how to redirect your domain using htaccess file using common htaccess redirects rules htaccess is a configuration file for use on web servers running the apache web server software.
Apr 20 2009 1. Ok am i not seeing this in cpanel. You can use our simple htaccess 301 redirect generator. Discussion in cloaking and content generators started by callmestrip apr 20 2009.
From an seo standpoint your best option is to create 301 redirects instead. Steps to mask your domain name url with htaccess. Domain forwarding with masking is really just using a frame. Jan 22 2009 messages.
Rewriteengine on rewriterule something something else this way each time someone accesses. For example when someone opens up.