In this tutorial, I will teach you how to fake subdomain names. Works with nearly all web hosts including amazon. Your subdomains will look like: fake-domain.yourdomain.com. You would need to create a .htaccess file and place it in the root folder (something like wwwroot, www, public_html, etc depending on your host configuration). Simple and very easy, just follow these steps:
The .htaccess document should look like this:
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{HTTTP_HOST}^(subA|subB)\.domain\.com
Rewrite^.*$ http://www.23cliques.com/$1
[R=301,L]
</IfModule>
This would redirect subA.23cliques.com to www.23cliques.com/subA and subB.23cliques.com to www.23cliques.com/subB. htaccess works with Apache server which many PHP web hosts use. It also works with the amazon web service.
0 comments:
Post a Comment