![]() |
.htaccess in a subfolder routes everything to standard route - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23) +--- Thread: .htaccess in a subfolder routes everything to standard route (/showthread.php?tid=30552) |
.htaccess in a subfolder routes everything to standard route - El Forum - 05-18-2010 [eluser]Fabdrol[/eluser] Hi people, I've got a little problem with my htaccess. It's in a subfolder, which contains the index.php file of one of the applications on the server. Structure: Code: - / (root) My htaccess file (with a little help from the wiki): Code: <IfModule mod_rewrite.c> somehow, this code just rewrites every request to dynamics/index.php. Everything after index.php gets routed to index.php, without anything after it. so, a url index.php/payment/success rewrites to index.php, which it shouldn't. Strange thing is, this htaccess works in the root, but aparently not in the subfolder, somehow Any thoughts? thanks! .htaccess in a subfolder routes everything to standard route - El Forum - 05-18-2010 [eluser]WanWizard[/eluser] Get rid of the ? in the RewriteRule: Code: RewriteRule ^(.*)$ index.php/$1 [L] .htaccess in a subfolder routes everything to standard route - El Forum - 05-18-2010 [eluser]Fabdrol[/eluser] Thanks! That did it! |