I enabled JSON in IIS, so my web.config file looks like this:

<?xml version="1.0" encoding="UTF-8"?>
            <add value="index.php" />
        <mimeMap fileExtension=".json" mimeType="application/json" />
        <add name="JSON" path="*.json" verb="*" modules="IsapiModule" scriptProcessor="C:\Windows\System32\inetsrv\asp.dll" resourceType="File" preCondition="bitness64" />

How do I add these lines of code to my existing file?

        <rule name="Main Rule" stopProcessing="true">
        <match url=".*" />
        <conditions logicalGrouping="MatchAll">
            <add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" />
            <add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true" />
        <action type="Rewrite" url="index.php" />

source: Remove index.php in permalink structure on IIS server

  • hmmm, i think this question should be asked in the ServerFault, not here. – Bjorn Jun 9 '18 at 5:01

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.