[eluser]Prokium[/eluser]
Hi,
I have a little problem with url rewriting on my app.
My app is an " intranet "
I have many class like : project, client, user
Theses class have same method like: show, add, edit, delete, liste etc..
I do this :
Code:
RewriteRule ^client/([a-zA-Z]+)/?$ client/show/$1 [L]
# it's to have myapp.com/client/googlecorp/ point to client/show/googlecorp/
RewriteRule ^client/([a-zA-Z]+)/modifier/?$ client/edit/$1 [L]
# to have myapp.com/client/googlecorp/modifier point to client/edit/googlecorp/
RewriteRule ^client/([a-zA-Z]+)/supprimer/?$ client/delete/$1 [L]
# myapp.com/client/googlecorp/supprimer point to client/delete/googlecorp/
#RewriteRule ^client/ajouter/?$ client/add/ [L]
That's good.
But, if I want to add a new client ( with my "add" method call client->add [ client/add in CI ] ) it's not good because the url is rewrite
from
myapp.com/client/ajouter
to
myapp.com/client/show/ajouter
apache thinks that "add" is a "real" client, than he must think that it is a method.
I tested some thing like that:
Code:
RewriteCond %{REQUEST_URI} ^client/ajouter?$
but it does'nt work.
I hope you know what i mean...
Thank you very much for your Help!