I'm working on a project to get a vanity_url to resolve a record from the database.
e.g. abc.com/ThisRecord -> shows the record from database where vanity_url=ThisRecord
In the route file I have used this:
$route['(:any)'] = 'listing_controller/list_page/$1'; // Resolved the Vanity_URL Query
How would I get an error 404 if no such record exists?