![]() |
Dollar sign in route? - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23) +--- Thread: Dollar sign in route? (/showthread.php?tid=20493) |
Dollar sign in route? - El Forum - 07-11-2009 [eluser]sheldonnbbaker[/eluser] Hello ![]() 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? Dollar sign in route? - El Forum - 07-12-2009 [eluser]richthegeek[/eluser] yes, they aren't valid URL characters. Try url_encode or similar to change it to its correct URL representation |