PHP 7.1  Website not working in IIS 10

chrislindsay used Ask the Experts™
Hi Experts,
I have a PHP 7.1 website which I have recently migrated from a IIS 7.5 to a IIS10 website.
The web.config file when migrated didn't work until i removed one of the sections, the rewrite section below :

                <rule name="Rewrite to index.php">
                    <match url="index.php|robots.txt|images|test.php" />
                    <action type="None" />
                <rule name="Rewrite CI Index">
                    <match url=".*" />
                        <add input="{REQUEST_FILENAME}" pattern="css|js|jpg|jpeg|png|gif|ico|htm|html|mp4|swf|xml" negate="true" />
                    <action type="Rewrite" url="index.php/{R:0}" />

When accessing the website the web page error message is as below

HTTP Error 404.0 - Not Found
The resource you are looking for has been removed, had its name changed, or is temporarily unavailable.
Most likely causes:
•The directory or file specified does not exist on the Web server.
•The URL contains a typographical error.
•A custom filter or module, such as URLScan, restricts access to the file.

Things you can try:
•Crete the content on the Web server.
•Review the browser URL.
•Create a tracing rule to track failed requests for this HTTP status code and see which module is calling SetStatus. For more information about creating a tracing rule for failed requests, click here.
Detailed Error Information:
   IIS Web Core
Error Code
Requested URL

Physical Path

Logon Method

Logon User
More Information:
This error means that the file or directory does not exist on the server. Create the file or directory and try the request again.

Any hints would be appreciated

Thank you
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Dave BaldwinFixer of Problems
Most Valuable Expert 2014

Your source for http://localhost:82/auth/login is not under 'wwwroot' which I think it should be for the code above to find it.  C:\inetpub\!Test\CB\auth\login
HI All,
The problem was that the url rewriter module was not installed in IIS.  Once this was installed, it worked

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial