12-18-2007, 01:51 PM
|
#9 (permalink)
|
|
The Contributor
Join Date: Oct 2007
Location: Argentina
Posts: 72
Thanks: 18
|
Quote:
|
Originally Posted by ;6808
|
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
|
|
|
|