IIS web.config error pages!

Kyle

Member
Jul 4, 2010
61
8
So you want errors from your CMS from IIS?

All you have to do is add this in to your web.config file:
Code:
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
    <system.webServer>
<httpErrors errorMode="Custom" existingResponse="Replace">
<remove statusCode="404" />
<error statusCode="404" path="/index.php?url=error responseMode="ExecuteURL" />
</httpErrors>
    </system.webServer>
</configuration>

Adding other than 404 just change the 404 numbers.
index.php?url=error is for RevCMS just make sure you have error.php in your theme from RevCMS!

Enjoy!
 

Users who are viewing this thread

Top