View Single Post
  #5  
Old 23rd January 2009, 08:07
Miguel Miguel is offline
HowtoForge Supporter
 
Join Date: Sep 2007
Location: Maasmechelen - Belgium
Posts: 18
Thanks: 0
Thanked 2 Times in 2 Posts
Default More specific:

In domain1 .htaccess

RewriteEngine On
RewriteBase /
# Rewrite foo subdomain requests to foo subdirectory
RewriteCond %{HTTP_HOST} ^squirrel\.domain1\.tld
RewriteCond %{REQUEST_URI} !^/squirrel/
RewriteRule (.*) /squirrel/$1 [L]

In domain2 .htaccess

RewriteEngine On
RewriteBase /
# Rewrite foo subdomain requests to foo subdirectory
RewriteCond %{HTTP_HOST} ^squirrel\.domain2\.tld
RewriteCond %{REQUEST_URI} !^/squirrel/
RewriteRule (.*) /squirrel/$1 [L]
Reply With Quote