I've got a website, http://www.mydomain.com, running on IIS 7.5 on Windows Server 2008 R2.
I'm trying to use the native IIS URL Rewrite utility to accomplish the following:
1. Redirect all requests for mydomain.com/SamplePage.aspx to mydomain.com/NewDirectory/SamplePage.aspx
2. ...EXCEPT for mydomain.com/blog, which should stay as-is.
3. Hide the redirect from the user, so that they don't see the /NewDirectory/ portion of the path.
I've gotten part of the way there with a Redirect rule to redirect "*" (all requests) to "/NewDirectory", where the request does not match the pattern "*/NewDirectory" or "*/blog".
This rule works to divert traffic to the NewDirectory folder, but causes all URLs on the site to display to the user as "http://www.mydomain.com/NewDirectory", which is pretty much the opposite of what I want. If I understand correctly, I need a corresponding Rewrite rule to correct the URL display; can someone please advise me on how I would configure this?
Your help is appreciated, thanks!