IIS deploy php application in subfolder of ASP.NET core NOPCommerce

390 Views Asked by At

In NopCommerce 4.0 application I am trying to deploy an PHP application in subfolder.

So that the URL for subfolder is like mydomain.com/blog/.

I have added only one file to the blog folder as index.php. I want the url for this page to be mydomain.com/blog/index.php.

Please note that I have already remove the blog from the RouteProvider.cs. How can I process the index.php in the NOP 4.0 folder?

1

There are 1 best solutions below

1
On

I got this issue solved by removing the route from the code and adding the below code in the web.config of the sub-folder

<?xml version="1.0" encoding="UTF-8"?>
<configuration>
    <system.webServer>            
        <handlers>
          <remove name="aspNetCore" />
       </handlers>
    </system.webServer>
</configuration>