Rewrite Rules Problem

Discussion in 'General troubleshooting' started by Allen, Jun 4, 2015.

  1. At discountasp I have this rewrite rule that work fine, and it's in the web.config file

    <?xml version="1.0" encoding="UTF-8"?>
    <configuration>
    <system.webServer>
    <rewrite>
    <rules>
    <rule name="RewriteUserFriendlyURL1" stopProcessing="true">
    <match url="^(\d+)/([a-zA-Z0-9\-]+)?$" />
    <conditions logicalGrouping="MatchAll" trackAllCaptures="false" />
    <action type="Rewrite" url="schedule?event_id={R:1}" />
    </rule>
    </rules>
    </rewrite>
    <httpErrors> <remove statusCode="500" subStatusCode="100" /> <error statusCode="500" subStatusCode="100" prefixLanguageFilePath="" path="/error/index.asp" responseMode="ExecuteURL" /> </httpErrors>
    </system.webServer>
    </configuration>

    This doesn't appear to work in my everleap account...the web.config file is in the site/wwwroot folder..should it be somewhere else? Thanks.
     
  2. never mind...I figured this out.
     
    Ray Huang likes this.

Share This Page