I am doing a quick sandbox test with some rewritten URLs (example from Scott Guthrie's blog) and Forms Authentication / Authorization.
I have a very simple setup.
~/View/(\d{1,6}) => ~/Public/View.aspx?ContentID=$1
and
~/Buy/(\d{1,6}) => ~/Private/Purchase.aspx?ContentID=$1
I confirmed that URL rewriting works by looking at each of the following sections
Then I went and turned on my forms authentication / authorization for these 2 directories in Web.Config. Setting as follows
<location path="Private">
<system.web>
<authorization>
<deny users="?" />
</authorization>
</system.web>
</location>
<location path="Public">
<system.web>
<authorization>
<allow users="*" />
</authorization>
</system.web>
</location>
This works fine when I look at 2 source URLs (an .aspx file) but it doesn't start at all when I look at URLs rewritten by versions.
<location> Buy , /.
, , URL ASPX... ,
<LookFor>~/Buy/(\d{1,6})\.aspx</LookFor>
. ASPX , .
, Auth url ( )