mercredi 18 novembre 2015

i want to add an id after localhost portnumber using rules in web.config

this is my code

<rule name="adding Id after PortNumber" patternSyntax="Wildcard" stopProcessing="true">
        <match  url="(.*)" />
        <conditions>
          <add input="{HTTP_HOST}" pattern="{HTTP_HOST}/12312312" negate="true"/>
        </conditions>
        <action type="Redirect" url="{HTTP_HOST}/{R:1}"/>
      </rule>

but when i run this i am getting the url path as 'http://localhost:49363/' but i want 'http://localhost:49363/12312312'

Aucun commentaire:

Enregistrer un commentaire