08-31-2007, 08:40 AM
[eluser]Waiel[/eluser]
yes that what i mean
basicly this will help you
in that
if you set anything beside www it will redirect to /index.php/group/Nameofsubdomain
for example
mydomain.mysite.com will be redirected to http://www.mysite.com/index.php/group/mydomain
yes that what i mean
basicly this will help you
Code:
RewriteCond %{ENV:REDIRECT_STATUS} ^$
RewriteCond %{HTTP_HOST} !^(www\.)?my-site\.com$ [NC]
RewriteCond %{HTTP_HOST} ^(www\.)?([^\.]+)\.my-site\.com$ [NC]
RewriteRule ^(.*)$ /index.php/groups/%2 [QSA,L]
if you set anything beside www it will redirect to /index.php/group/Nameofsubdomain
for example
mydomain.mysite.com will be redirected to http://www.mysite.com/index.php/group/mydomain