regular expression for URI routing |
[eluser]Tomas Sundvall[/eluser]
Thanks for your answers! I tried to write: $route[’admin’] = 'admin/login' $route[’:any’] = 'start/index' So that dosen't work since $route[’:any’] has the highest routing priority? So then the problem must be solved using a regular expression that routs anything except 'admin' (case insensitive) to 'start/index'? I tried with: $route['^[^admin].*'] = "start/index"; It worked a little bit better. But the problem was that evrything that starts with admin is not sent to "start/index". So if I for example write http://mypage/administration, then I'm not being routed to "start/index". I don't really know how to rewrite it so it only not sends admin to "start/index". Does anyone have an idea of how to do this? :-). /Tomas |
Messages In This Thread |
regular expression for URI routing - by El Forum - 08-26-2010, 09:35 AM
regular expression for URI routing - by El Forum - 08-26-2010, 09:49 AM
regular expression for URI routing - by El Forum - 08-26-2010, 06:44 PM
regular expression for URI routing - by El Forum - 08-26-2010, 10:34 PM
regular expression for URI routing - by El Forum - 08-26-2010, 11:05 PM
regular expression for URI routing - by El Forum - 08-26-2010, 11:21 PM
regular expression for URI routing - by El Forum - 08-27-2010, 04:53 AM
regular expression for URI routing - by El Forum - 08-27-2010, 04:58 AM
regular expression for URI routing - by El Forum - 08-27-2010, 08:12 AM
|