I have a URL rewrite set up on a site where users can create their own sites on a subdomain.
<rule name="CName to URL - Rewrite" stopProcessing="true">
<match url=".*" />
<conditions>
<add input="{HTTP_HOST}" pattern="^(?!www)(.*)\.basedomain\.com" />
</conditions>
<action type="Rewrite" url="render_page.aspx?site={C:1}&page={R:0}" />
</rule>
As an example, a user could create a page http://client.basedomain.com/about-us and this will successfully pass "client" and "about-us" to my application.
What I need to be able to do is override this behavior in the case of a specific page name following their domain.
So if the page http://client.basedomain.com/restricted was accessed, it would not perform the above rewrite, and instead rewrite it to the url "render_page_restricted.aspx?site={C:1}
Any help is GREATLY appreciated.