1

How can i get IIS 7 to return my custom error pages for file without extension? I got it working for file with extension, but when the extension is not specified, i get the generic page.

3 Answers 3

2

Try adding a wildcard application extension that maps to the aspnet_isapi.dll.

Without that mapping, requests will never hit the aspnet dll for processing and the default IIS 404 page will be returned.

Sign up to request clarification or add additional context in comments.

Comments

1

Well if you are dealing with such a situation you should handle these no extension files and then redirect to your custom error page.

Comments

0

IIS 7 supports extension less URLs, you can use this with combination of Urlrewriting.net

here is very good article about achieving what you want.

http://www.vinodunny.com/blog/post/ASPNET-Extensionless-URL-ReWriting-in-IIS-7.aspx

1 Comment

i am actually using urlrewriter.NET and even after applying what the article says, i have no luck getting it to work

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.