Aspnet Redirect using location tag

Posted by Learner on Stack Overflow See other posts from Stack Overflow or by Learner
Published on 2010-04-13T18:41:09Z Indexed on 2010/04/13 18:43 UTC
Read the original article Hit count: 331

Filed under:
|
 <location path="/home/address?city="jcity" allowOverride="true">
    <system.webServer>
      <validation validateIntegratedModeConfiguration="false" />
      <httpRedirect enabled="true" httpResponseStatus="Permanent" exactDestination="true" destination="/home/jerseycity" />
    </system.webServer>
  </location>

I get an error since location tag can not use "?" tag. What is the best way to do this redirect?

© Stack Overflow or respective owner

Related posts about ASP.NET

Related posts about redirect