[resolved] need help on specific mod_rewrite request - 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: [resolved] need help on specific mod_rewrite request (/showthread.php?tid=17979) |
[resolved] need help on specific mod_rewrite request - El Forum - 04-21-2009 [eluser]Marc Arbour[/eluser] Hello to all. I did manage to remove the index.php from my URLs with mod_rewrite. Here's my .htaccess file: Code: RewriteEngine on Now, Here's the situation: I have a controller/function/parameter/parameter that always looks like Code: domain.com/banners/view/1/administrateur Code: domain.com/1/administrateur I know I can remove part of a URI... Did it with index.php. But can this be done for only 1 module AND 1 function as well? Is there anyone knowledgeable enough with mod_rewrite that can point me in the right direction? Any pointers will help. Thanks and best regards. Marc [resolved] need help on specific mod_rewrite request - El Forum - 04-21-2009 [eluser]Dam1an[/eluser] You don't need .htaccess for that, you need URI routing If after reading that page you're still not sure, just say, and I'll be more specific [resolved] need help on specific mod_rewrite request - El Forum - 04-21-2009 [eluser]Marc Arbour[/eluser] Thanks Dam1an!!! I did put Code: $route['1/:any'] = "banners/view"; I never got that routes things... Never needed it... But with your pointer: I am now getting it! How wonderfull and usefull Thanks a million. Best regards. Marc |