I\'m trying to use routing in CI to create a signup form
signup
is re-routed to user/signup
But my signup function can contain a pa
The trouble with @Ukuser32's answer is that it allows for URIs like signup69 to be accepted, which in this case might be innocuous but in the general case is undesirable. Just put the slash in with the captured :num
$route['signup(/:num)?'] = "user/signup$1"
And note that if you have multiple optional segments, then you will need to nest them....