Welcome Guest, Not a member yet? Register   Sign In
help with mod rewrite and CI
#4

[eluser]Waiel[/eluser]
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]
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


Messages In This Thread
help with mod rewrite and CI - by El Forum - 07-05-2007, 08:12 AM
help with mod rewrite and CI - by El Forum - 07-05-2007, 04:28 PM
help with mod rewrite and CI - by El Forum - 08-31-2007, 06:03 AM
help with mod rewrite and CI - by El Forum - 08-31-2007, 08:40 AM



Theme © iAndrew 2016 - Forum software by © MyBB