CodeIgniter Forums
[SOLVED]another question about codeigniter and modrewrite / .htaccess - 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: [SOLVED]another question about codeigniter and modrewrite / .htaccess (/showthread.php?tid=48183)



[SOLVED]another question about codeigniter and modrewrite / .htaccess - El Forum - 01-07-2012

[eluser]ciGR[/eluser]
hello! I have a question about the mod_rewrite in a codeigniter site.
First of all, I use the .htaccess file from wiki http://codeigniter.com/wiki/mod_rewrite to "remove" the index.php page.

All is ok, but I try for example change the .htaccess file to rewrite an url like users/2 to /index.php/profile/users/2 I try some RewriteRules but I always get a (codeigniter's) 404 error page.

I know that I can do this by the codeigniters routes, but I want to see how do it with mod_rewrite.

If anyone can help me.

Thank you for your time.