Knowledge Base
All Categories How to's Microsoft IIS Configuration

Microsoft IIS Configuration

If you are using a Windows web server with IIS installed, the .htaccess won’t work so you need to edit the web.config like this (make sure the rewrite extension is installed on your IIS server

<?xml version="1.0"?>
     <!-- Set the default document -->
        <remove value="index.php" />
        <add value="index.php" />
 <httpErrors errorMode="Detailed"/>
            <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" />

Was this article helpful?