Love Fuel?    Donate

FuelPHP Forums

Ask your question about FuelPHP in the appropriate forum, or help others by answering their questions.
Is there a way to allow only routes referenced in routes.php ?
  • Hi,

    I use routes to customize the way users can access pages on my website but "default" routes are still available. I don't want to have more than one url to access a page. So my question is: is there a way to allow only urls referenced in routes.php ?

    Thanks :)
    Gauthier
  • HarroHarro
    Accepted Answer
    Yes, add a catch-all route at the end directing all other requests to your 404 page:

    '(.*)' => 'welcome/404',
  • Thanks to you. That was obvious but I didn't thinked about it ^^

    Gauthier

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

In this Discussion