I need my .net application to use the .html extension instead of .aspx
I’m converting a php app and there are external applications which depend on that extension to function.
What is the best way to do this?
Thanks
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
In IIS, when you create the application for the virtual directory, click on ‘Configuration’ for the application, and edit ‘App mappings’, i.e. add a new mapping for html.
Or, in your web.config, in add this sections:
EDIT: Added the section, according to the comment. Thanks Chris.