Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
Hi,
We have an issue with redirecting to our custom 404 page when the url has file extensions.
URL's like this would work: http://www.mysite.com/nonexistentpage
But not with file extensions: http://www.mysite.com/somefolder/nonexistentfile.ext http://www.mysite.com/nonexistentfile.ext
It just goes to default Umbraco 404 page.
Can we handle this kind of 404 scenario?
Thanks in advance!
Regards, Paul
Hello Paul
have you added the path to the umbracoReservedUrls tag the web.config ?
Hi Kasper,
Thanks for the reply.
I found this forum post: https://our.umbraco.org/forum/ourumb-dev-forum/bugs/50332-Custom-404-Only-Works-for-Extensionless-and-ASPX-URLs
And this solution worked:
<httpErrors errorMode="Custom"> <remove statusCode="404" /> <error statusCode="404" path="/arbitraryPathThatDoesNotExistAndThatWillRespondWithA404" responseMode="ExecuteURL" /> </httpErrors>
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
Custom 404 handling URL's with file extension
Hi,
We have an issue with redirecting to our custom 404 page when the url has file extensions.
URL's like this would work: http://www.mysite.com/nonexistentpage
But not with file extensions: http://www.mysite.com/somefolder/nonexistentfile.ext http://www.mysite.com/nonexistentfile.ext
It just goes to default Umbraco 404 page.
Can we handle this kind of 404 scenario?
Thanks in advance!
Regards, Paul
Hello Paul
have you added the path to the umbracoReservedUrls tag the web.config ?
Hi Kasper,
Thanks for the reply.
I found this forum post: https://our.umbraco.org/forum/ourumb-dev-forum/bugs/50332-Custom-404-Only-Works-for-Extensionless-and-ASPX-URLs
And this solution worked:
Regards, Paul
is working on a reply...