asp.net - URL rewriting in, IIS 6, .aspx -
i've developed small website in vs2012 utilizes following rewrite in web.config
:
<system.webserver> <rewrite> <rules> <rule name="dynamicrewrite" stopprocessing="true"> <match url="(.*)"/> <action type="rewrite" url="default.aspx/{r:1}"/> </rule> </rules> </rewrite> </system.webserver>
this works beautifully in iis express on dev machine, server running iis 6, , rewrite fails (i 404 on urls should have worked).
i found this post, talks .asax
files, i.e. web application. have simple website default.aspx
, custom classes.
is there way me make work? basically, want able in web.config
or aspx-file, have full access iis can configure there well, if that's takes (although don't know how -- iis 6 scary).
currently, i'm on .net 4.0 can lower 3.5 if needed (heard there rewriting-issues on extensionless urls 4.0, never got gist of it).