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}&amp;a1[]={r:2}&amp;a1[]={r:3}&amp;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

Popular posts from this blog

sublimetext3 - what keyboard shortcut is to comment/uncomment for this script tag in sublime -

java - No use of nillable="0" in SOAP Webservice -

ubuntu - Laravel 5.2 quickstart guide gives Not Found Error -