Tank_Auth -- removing /auth from the URL |
[eluser]imcl[/eluser]
I am using Tank_Auth. Is it possible to remove the /auth from URLs as follows: Code: http://www.example.com/auth/login I wonder if this can be done via htaccess or if I would need to change the Tank_Auth code to achieve this. If it's not possible to completely remove via htaccess, an acceptable solution would be to change /auth for another string. Thanks for you comments.
[eluser]osci[/eluser]
in your config/routes.php add Code: $route['login'] = "auth/login"; look at User Guide - URI Routing
[eluser]imcl[/eluser]
thanks osci -- but this seems to only partially resolve the problem -- when a function is called directly from the /auth controller, the routing does not work and /auth still appears. for example the logout function redirects to /auth/login, despite the route setting, because that's hardcoded in the library. however, if i type /login in the address bar, now i can actually see the login page because of the route. |
Welcome Guest, Not a member yet? Register Sign In |