• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
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

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2021 MyBB Group.