PHP 7.1 Website not working in IIS 10

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
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Dave BaldwinFixer of ProblemsCommented:
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
chrislindsayAuthor Commented:
HI All,
The problem was that the url rewriter module was not installed in IIS.  Once this was installed, it worked

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.