View Single Post
  #4  
Old 11th April 2010, 16:20
createch createch is offline
Senior Member
 
Join Date: Aug 2007
Posts: 118
Thanks: 24
Thanked 16 Times in 13 Posts
Default

One further point ... please add the following apache directives so that there will not be any changes to the browser address bar when users go to the two sub-domains:

(for example 2 sub-domains: sub1.domain.tld and sub2.domain.tld)

RewriteEngine on
RewriteCond %{HTTP_HOST} ^sub1.domain.tld [NC]
RewriteRule ^/(.*)$ /sub1/$1 [L]
RewriteCond %{HTTP_HOST} ^sub2.domain.tld [NC]
RewriteRule ^/(.*)$ /sub2/$1 [L]

Cheers,
Createch
Reply With Quote