Love Fuel?
Donate
About
Forums
Discussions
Login
FuelPHP Forums
Ask your question about FuelPHP in the appropriate forum, or help others by answering their questions.
General
Is there a way to allow only routes referenced in routes.php ?
Gog0
March 2013
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
Harro
March 2013
Accepted Answer
Yes, add a catch-all route at the end directing all other requests to your 404 page:
'(.*)' => 'welcome/404',
Gog0
March 2013
Thanks to you. That was obvious but I didn't thinked about it ^^
Gauthier
Add a Comment
Howdy, Stranger!
It looks like you're new here. If you want to get involved, click one of these buttons!
Sign In
Apply for Membership
Categories
All Discussions
5,088
General
↳ General
3,364
↳ Job Board
13
↳ Installation & Setup
214
Packages
↳ Oil
213
↳ Orm
700
↳ Auth
260
Development
↳ Tips and Tutorials
126
↳ Code share
145
↳ Applications
52
In this Discussion
Gog0
March 2013
Harro
March 2013