IIS web.config error pages!

Results 1 to 1 of 1
  1. #1
    Lurking around Clawed is offline
    MemberRank
    Jun 2012 Join Date
    RaGEZONELocation
    785Posts

    IIS web.config error pages!

    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!




Advertisement