[CLEANUP] Fix line-wrapping

This commit is contained in:
Martin Rüegg committed 2023-03-15 15:31:04 +01:00
1 parent f0f54afd4f
commit ca5370e13b
1 file changed
+29 -10
+29 -10
View File
@@ -1,4 +1,4 @@
<?xml version="1.0" encoding="UTF-8"?>
<?xml version="1.0" encoding="UTF-8" ?>
<!-- @see https://weblogs.asp.net/scottgu/tip-trick-url-rewriting-with-asp-net -->
@@ -73,27 +73,46 @@
</if>
<!-- Remove trailing slash -->
<redirect url="^(.*)/$" exists="$1" to="$1/" processing="stop"/>
<redirect url="^(.*)/$" to="$1" processing="stop"/>
<redirect url="^(.*)/$"
exists="$1"
to="$1/"
processing="stop"/>
<redirect url="^(.*)/$"
to="$1"
processing="stop"/>
<!-- Remove trailing .html -->
<redirect url="^(.*)/index\.html$" to="$1" processing="stop"/>
<redirect url="^(.*)\.html$" to="$1" processing="stop"/>
<redirect url="^(.*)/index\.html$"
to="$1"
processing="stop"/>
<redirect url="^(.*)\.html$"
to="$1"
processing="stop"/>
<!-- Use dynamic pass-through, since /images/docs/* are actually under the projects /docs/images folder -->
<if url="^/images/docs(/.*)?$">
<rewrite url="^/images/docs(/.*)?$" to="/Default.aspx?type=image&amp;path=/docs/images$1" processing="stop"/>
<rewrite url="^/images/docs(/.*)?$"
to="/Default.aspx?type=image&amp;path=/docs/images$1"
processing="stop"/>
</if>
<!-- Do NOT rewrite everything under /assets/ and /images/ -->
<if url="^/(assets|images)($|/)">
<rewrite url="^/(.*)" to="~/$1" processing="stop"/>
<rewrite url="^/(.*)"
to="~/$1"
processing="stop"/>
</if>
<rewrite url="^/Default.aspx$" to="/Default.aspx?path=/" processing="stop"/>
<rewrite url="~/favicon.ico$" to="~/images/favicon.ico" processing="stop"/>
<rewrite url="^/Default.aspx$"
to="/Default.aspx?path=/"
processing="stop"/>
<rewrite url="~/favicon.ico$"
to="~/images/favicon.ico"
processing="stop"/>
<rewrite url="^(/.*)$" to="/Default.aspx?path=$1" processing="stop"/>
<rewrite url="^(/.*)$"
to="/Default.aspx?path=$1"
processing="stop"/>
</rewriter>