Welcome Guest, Not a member yet? Register   Sign In
Dollar sign in route?
#1

[eluser]sheldonnbbaker[/eluser]
Hello Smile

Code:
$route['posts/([\-\^\*a-zA-Z0-9\|=<>\$]+)'] = "posts/index/$1";

I'm getting a 404 error with this route - and I'm positive I'm not triggering it myself in my controller or anything when I try to load http://localhost/posts/user$=sheldonnbbaker.

Are dollar signs kicked out of the routing class somehow?
#2

[eluser]richthegeek[/eluser]
yes, they aren't valid URL characters. Try url_encode or similar to change it to its correct URL representation




Theme © iAndrew 2016 - Forum software by © MyBB