CodeIgniter Forums
Route Everything, Except These Controllers PROBLEM - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forum-20.html)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forum-23.html)
+--- Thread: Route Everything, Except These Controllers PROBLEM (/thread-45539.html)



Route Everything, Except These Controllers PROBLEM - El Forum - 09-26-2011

[eluser]nuclearmaker[/eluser]
Code:
$route[default_controller'] = "welcome";
$route['^(?!welcome)\S*'] = "page/view/$0";

this code right now, its work just fine for http://localhost/welcome and http://localhost/anything_i_put

but, its show 404 error page if http://localhost/welcomes , http://localhost/welcomez and all if i add after "/welcome"

any idea guys?