View Single Post
Old 12-18-2007, 01:51 PM   #9 (permalink)
Matt83
The Contributor
Upcoming Programmer 
 
Matt83's Avatar
 
Join Date: Oct 2007
Location: Argentina
Posts: 72
Thanks: 18
Matt83 is on a distinguished road
Default

Quote:
Originally Posted by ;6808
It doesn't seem to work..

http://test.clanassist.com/
http://www.clanassist.com/sites/test

I did replace `domain` with clanassist... so I dont think that's the issue.. any other recommendations..?
Sorry TerrorRonin, i typed that on a hurry, here is the corrected code:

Code:
Options +FollowSymLinks 
RewriteEngine on

RewriteCond %{HTTP_HOST} !^www\.clanassist\.com$ [NC] 
RewriteCond %{HTTP_HOST} ^([^\.]+)\.clanassist\.com$ [NC] 
RewriteRule ^([^/]+)$ /sites/%1/ [QSA,L]
Remember that for this to work you should create a sites folder and ( for example ) a test folder in your domain, ( add an index.html if you want to see something )

cheers
__________________
http://www.mattvarone.com
Matt83 is offline  
Reply With Quote