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="(.*)" />
          <add input="{HTTP_HOST}" pattern="{HTTP_HOST}/12312312" negate="true"/>
        <action type="Redirect" url="{HTTP_HOST}/{R:1}"/>

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