KB Issue
The URL used in the URL Rewrite Rule throws a 500 error.
Issue Details
If the URL Is Not properly formatted, you may encounter a 500 error when creating the URL rewrite rule.
500 - Internal Server Error.
There is a problem with the resource you are looking for, and it cannot be displayed.
[Updated]
Dated: June 24, 2026
I wanted to display the actual error you will receive when you have a malformed Rewrite rule in your web.config file, so I edited my file to generate this error to show here.

The Full Error
HTTP Error 500.19 - Internal Server Error

The requested page cannot be accessed because the related configuration data for the page is invalid.

Detailed Error Information:
  • ModuleIIS Web Core
  • NotificationBeginRequest
  • HandlerNot yet determined
  • Error Code0x8007000d
  • Config ErrorConfiguration file is not well-formed XML
  • Config File\\?\G:\Inetpub\wwwroot\new\web.config
  • Requested URLhttp://localhost:80/new/Main.asp?Type=Page&ID=7283
  • Physical PathG:\Inetpub\wwwroot\new\Main.asp
  • Logon MethodNot yet determined
  • Logon UserNot yet determined
  • Request Tracing DirectoryG:\inetpub\logs\FailedReqLogFiles
Config Source:
39::<match url="Main/([ 0-9a-z-(-)-,-]+)" />
40::<action type="Rewrite" url="Main.asp?Type=Page&ID={R:1}&Page=1" />
41::</rule>

Recreate Issue
The URL is not properly formatted for the Rewrite rule.
[ASP.NET - web.config Rewrite Rule]
CFFCS | CarrzSynEdit: | ASP.NET (VB/C#)
   <rule name="MyRule" stopProcessing="true">
        <match url="MyRule/([ 0-9a-z-(-)-,-]+)/([ 0-9a-z-(-)-,-.-]+)/([ 0-9a-z-(-)-,-]+)" />
        <action type="Rewrite" url="default.asp?Type=Page&ID={R:1}&Name={R:2}&GID={R:3}" appendQueryString="true" />
    </rule>

Resolve IssueThere has to be & instead of the single & symbol.

[ASP.NET - web.config Rewrite Rule]
CFFCS | CarrzSynEdit: | ASP.NET (VB/C#)
    <rule name="MyRule" stopProcessing="true">
        <match url="MyRule/([ 0-9a-z-(-)-,-]+)/([ 0-9a-z-(-)-,-.-]+)/([ 0-9a-z-(-)-,-]+)" />
        <action type="Rewrite" url="default.asp?Type=Page&ID={R:1}&Name={R:2}&GID={R:3}" appendQueryString="true" />
    </rule>