CFF KB - Carrz-Fox-Fire Promotions Knowledge Base
CFF KB is all about 1 thing: The Sharing of Knowledge and the Power we gain from it.Knowledge Base
- Breadrumbs:
URL Rewrite Rule causes 500 Error in web.config
- Article ID:
7270 - Date Created
Wednesday, March 6, 2024 - Last Updated
Wednesday, March 6, 2024 - This Article Has been Viewed
435 times - Short Desc
The URL used in the URL Rewrite Rule throws a 500 error. - 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. - Recreate Issue
The URL is not properly formatted for the Rewrite rule.
<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 Issue
There has to be &amp; instead of the single & symbol.
<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>
Share With Friends (Updated 6-8-2010)
Recent Articles
All Topics
- Coming Soon - Knowledge Exchange
Trending Articles
- Microsoft VBScript runtime error '800a0046' Permission denied FileSystemObject 24689
- Microsoft OLE DB Provider for SQL Server error '80040e57' String or binary data would be truncated. or The field is too small to accept the amount of data you attempted to add. Try inserting or pasting less data. 21292
- ADODB.Parameters error '800a0e7c' Parameter object is improperly defined 19537
- After Effects warning: Audio conforming failed for the following file .cfa. Perhaps due to disk space 17780
- The backup set holds a backup of a database other than the existing 16819