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.

General Questions /

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

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

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


Reply


976 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).