开发者

IIS 6 URL rewrite to lowercase urls

Currently we are using Managed Fusion Rewriter to handle rewrites, however, we have been unable to determine a way to have it do a rewrite to urls all开发者_StackOverflow社区 lowercase. Unfortunately, upgrading to IIS 7 isn't an option right now. Does anyone have any experience utilizing another rewrite module to handle rewriting to lowercase urls.


Managed Fusion Rewriter uses the same syntax as Apache's mod_rewrite module, which I would presume means that you can use mod_rewrite's rules, as well.

Try the lowercase URL rule located here.

The pertinent bits are:

RewriteMap  lc int:tolower
RewriteCond %{REQUEST_URI} [A-Z]
RewriteRule (.*) ${lc:$1} [R=301,L]
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜