Your web.config file should look something like this:
<?xml version="1.0" encoding="UTF-8"?> <configuration> <system.webServer> <rewrite> <rules> <rule name="Index"> <match url="^(.*)$"/> <conditions> <add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true"/> <add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true"/> </conditions> <action type="Rewrite" url="index.php/{R:1}"/> </rule> </rules> </rewrite> <httpErrors> <remove statusCode="404" subStatusCode="-1" /> <error statusCode="404" path="/somedir/oops404.htm" responseMode="ExecuteURL" /> </httpErrors> </system.webServer>
RewriteBase is not used in the web.config files as it is, so you may need to change the URL paths accordingly.
source share