Return to Snippet

Revision: 5960
at April 16, 2008 11:45 by omixen


Initial Code
<rewriter>

      <!-- EXCEPT FOR PREDEFINED DIRECTORIES -->

      <rewrite url="~/(.+)/((js|img|css|op|mtn)/(.+))" to="~/$2" processing="stop"></rewrite>

      <!-- EXCEPT FOR COMMONLY IMPORTED FILES -->

      <rewrite url="^(/.+(\.gif|\.png|\.jpg|\.ico|\.pdf|\.css|\.swf|\.zip|\.js)(\?.+)?)$" to="$1" processing="stop" />

      <!-- ALL URL WILL BE REWRITTEN  -->

      <rewrite url="~/(.+)/(.+).aspx(\?(.+))?$" to="~/$2.aspx?site=$1&amp;$4" processing="stop"></rewrite> 

</rewriter>

Initial URL

                                

Initial Description

                                

Initial Title
URLRewriter.NET Regex

Initial Tags
url, Net

Initial Language
XML