url rewriting - IIS URL Rewrite not working after first forward slash, but URL forward works fine -
so if enter url like: http://sample.com/maindir/test123 rewrite works fine. if enter url like: http://sample.com/maindir/test123/test234 breaks, giving 500 error. both of these work if change redirect instead of rewrite rule
<rule name="test" stopprocessing="true"> <match url="^maindir\/?(?:([^\/]+))?\/?(?:([^\/]+))?\/?(?:([^\/]+))?\/?(?:([^\/]+))?\/?" /> <action type="rewrite" url="maindir/?a1[]={r:1}&a1[]={r:2}&a1[]={r:3}&a1[]={r:4}" /> <conditions> <add input="{request_filename}" matchtype="isdirectory" negate="true" /> </conditions> </rule>
after frustration this, trying find solution, figured see if else can see what's going on here. thank in advance.
Comments
Post a Comment