How to do with IIS + Visual Studio what pages with the "html" extension read it as if it were "aspx"?

0

When it is programmed with php and Apache web server, it is possible that the pages with the extension .html and .php treat them equally, being able to have a php code within a page with an extension .HTML Is it possible to configure the IIS + visual studio web page server so that when you see an .HTML extension there may be code in .aspx?

    
asked by Popularfan 03.09.2018 в 08:04
source

1 answer

1

Taken from a answer in English:

In IIS7, choose the classic mode as the application group and then go to the driver assignment part. Write down all the entries that have as path: .aspx and create equal ones for .html

Then add the following in web.config

<httpHandlers>
   <add path="*.html" verb="*" type="System.Web.UI.PageHandlerFactory" />
</httpHandlers>
    
answered by 03.09.2018 / 08:17
source