Problem htaccess + rewrite - 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: Problem htaccess + rewrite (/showthread.php?tid=45760) |
Problem htaccess + rewrite - El Forum - 10-05-2011 [eluser]Unknown[/eluser] Hi, I'm having a problem with a RewriteRule in my htacces. First, here is my file : Code: <IfModule mod_rewrite.c> My problem is this RewriteRule : Code: RewriteRule (.*)\.html /~user/my_dir/index.php/html/page/$1 [L] Note that the following RewriteRule also don't work : Code: RewriteRule test\.html /~user/my_dir/index.php/html/page/test [L] With a [R] mode instead of a [L] mode, the redirection is working well. Code: RewriteRule (.*)\.html /~user/my_dir/index.php/html/page/$1 [R] Also, I've tried each mode in the config.php uri_protocol properties. In the [L] case, CI rewrite me to a 404 Page Not Found. Of course, the file html exists, which has a function named page with an argument, like this : Code: class Html extends CI_Controller { Any idea ? Thanks in advance for your help, Fabrice |