View Single Post
Old 19th May 2007, 01:09
madmucho madmucho is offline
Senior Member
Join Date: Oct 2006
Location: Czech republic, Karlovy Vary
Posts: 158
Thanks: 81
Thanked 11 Times in 11 Posts
Send a message via ICQ to madmucho

Thanks for nice how-to is very usefull.

when you want more rewrites for more subdomains simply do this rewrite

RewriteEngine on
RewriteCond %{HTTP_HOST}   ^sub1.domain.tld [NC]
RewriteRule   ^/(.*)$ /sub1/$1  [L]
RewriteCond %{HTTP_HOST}   ^sub2.domain.tld [NC]
RewriteRule   ^/(.*)$ /sub2/$1  [L]
Will be very happy when someone integrate this to co-domain and that is created automaticaly if user want (radiobutton or something similiar).
Reply With Quote