Welcome Guest, Not a member yet? Register   Sign In
regex in route.php
#2

[eluser]xwero[/eluser]
The easiest way to solve it is to put an admin route before all the others
Code:
$route['(admin)(.*)'] = '$1$2';
$route['([a-zA-Z0-9\-\/]+)'] = 'pages/view'
Limit the route to the allowed characters. set the uri_protocol to path_info to prevent the need to add more allowed characters.


Messages In This Thread
regex in route.php - by El Forum - 05-03-2009, 10:10 PM
regex in route.php - by El Forum - 05-04-2009, 02:00 AM



Theme © iAndrew 2016 - Forum software by © MyBB