Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

General Questions /

General questions about getting started with SilverStripe that don't fit in any of the categories above.

Moderators: martimiz, Sean, Ed, biapar, Willr, Ingo, swaiba

nestedurls - Displaying a 404 Error instead of action not allowed message


Go to End


1363 Views

Avatar
Ben Gribaudo

Community Member, 181 Posts

21 May 2009 at 1:16am

Edited: 21/05/2009 1:16am

Hello,

Going to http://mysite/nonExistantPage/ results in a 404 file not found error being displayed. Going to http://mysite/exists/nonExistantPage/ results in "Action 'nonExistantPage' isn't allowed on class Page_Controller" is displayed.

How would I get a 404 file not found error to be displayed for both of those URLs?

Thanks,
Ben
Using nestedurls trunk (revision 77403).