two .htaccess, mod_rewrites ? redirect to controller method |
[eluser]coldfire82[/eluser]
First thing first: not a mod rewrite expert but it should be easy for experts here! Hi, I have two CI installations and both have different .htaccess files, First .htaccess in root folder i.e. http://mysite.com/ Second site & .htaccess in folder below (its temporary installation so dont bother why i have it) i.e. http://mysite.com/business/ First .htaccess does nothing instead of taking care of index.php in urls. Here it is, Code: <IfModule mod_rewrite.c> In Second, I want to write a rule so that I get http://mysite.com/business/<business_id> e.g. http://mysite.com/business/1 TO http://mysite.com/business/<controller>/...usiness_id> e.g. http://mysite.com/business/index.php/ind...ess_unit/1 I tried to use this @thread -> http://ellislab.com/forums/viewthread/77892/ as Code: # map mysite.com/user_name to mysite.com/ci_folder/controller/method/user_name BUT, the result was a 404 and does not redirect to http://mysite.com/business/index.php/ind...ess_unit/1 Any help? What if I dont have a ci_folder? |
Messages In This Thread |
two .htaccess, mod_rewrites ? redirect to controller method - by El Forum - 10-20-2010, 08:08 AM
two .htaccess, mod_rewrites ? redirect to controller method - by El Forum - 10-20-2010, 08:12 AM
two .htaccess, mod_rewrites ? redirect to controller method - by El Forum - 10-20-2010, 08:48 AM
two .htaccess, mod_rewrites ? redirect to controller method - by El Forum - 10-20-2010, 10:27 AM
two .htaccess, mod_rewrites ? redirect to controller method - by El Forum - 10-22-2010, 08:51 AM
|