How to set a default controller if no other routes match

by Nabil   Last Updated November 14, 2017 09:07 AM

I my project I would like to have a default route or controller that handles any request that does not match any available route. For example on requesting /abcd it now returns 404 as there is route defined for the path /abcd. I want any such request to be handle by a default controller that consider 'abcd' or any other string for that matter as a parameter. How can I implement that.

Tags : 8 routes


Related Questions


How do you set a one-off access checker on a route?

Updated December 01, 2016 08:03 AM

add class to LI

Updated December 25, 2016 08:03 AM


Routing match everything

Updated January 10, 2017 08:03 AM