[resolved] need help on specific mod_rewrite request |
[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
[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 ![]()
[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 |
Welcome Guest, Not a member yet? Register Sign In |