IIS7 URL Rewrite

Discussion in 'Windows / IIS' started by staranise, Mar 15, 2009.

  1. Hi,

    My app is under a subfolder from root (ie, [root]/app). I want to rewrite all requests to this subfolder so I have the following rewrite rule:

    ^(?!app)(.*) to /app/{R:1}

    which is working fine. However, all the links in my app still points to /app/<whatever>.aspx because tilde (~) is used in the links and gets resolve to "/app". Is there any way to do rewrite/redirect to solve this problem where 1) "/app" does not appear in the links; or 2) somehow rewrite the resolved tilde to the correct location?

    Thanks! ..sa
     
  2. Bruce

    Bruce DiscountASP.NET Staff

    ~ points to your application root. If /app is setup as an application, ~ will point to /app
     
  3. Thanks for your reply, Bruce. Odd, it doesn't seem to be working -- I'll try a few other tricks.
     

Share This Page