PDA

View Full Version : IIS7 URL Rewrite


staranise
03-15-2009, 09:38 AM
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

bruce
03-16-2009, 11:23 AM
~ points to your application root. If /app is setup as an application, ~ will point to /app

staranise
03-18-2009, 09:44 AM
Thanks for your reply, Bruce. Odd, it doesn't seem to be working -- I'll try a few other tricks.