regular expression for URI routing |
[eluser]Tomas Sundvall[/eluser]
Hello! I'm trying to create an route that makes all url call a certain function in a certain controller. So if you for example go to http://mypage/page1, http://mypage/start/index/page1 will "be used". I've got it to work easily with: Code: //$route[':any'] = "start/index"; The problem is that there is one exception, and that is when you go to http://mypage/admin, then I want the admin controller to "be used". I tried to create a regular expression that made everything go to "start/index" except if you wrote admin, but I wasn't successfull. Does anyone know how to do that? /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
|