Skip to content

Instantly share code, notes, and snippets.

@asadaly111
Created July 19, 2016 07:25
Show Gist options
  • Save asadaly111/6d37293b4960666b6ef2a4f42a59e7f3 to your computer and use it in GitHub Desktop.
Save asadaly111/6d37293b4960666b6ef2a4f42a59e7f3 to your computer and use it in GitHub Desktop.
Error showing in Windows hosting (custome error's)
<configuration>
<system.web>
<customErrors mode="Off"/>
<compilation debug="true"/>
</system.web>
<system.webServer>
<httpErrors errorMode="Detailed" />
<asp scriptErrorSentToBrowser="true"/>
<rewrite>
<rules>
<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" />
</conditions>
<action type="Rewrite" url="index.php/{R:0}" />
</rule>
</rules>
</rewrite>
</system.webServer>
</configuration>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment