最近,我切换到一个ASP服务器,我需要将htacces的这些规则转换为web.config的规则。有人能帮我吗?
<IfModule mod_rewrite.c>
Options -MultiViews
RewriteEngine on
RewriteCond %{HTTP_COOKIE} HTTP_IS_RETINA [NC]
RewriteCond %{REQUEST_FILENAME} !@2x
RewriteRule ^(.*)\.(gif|jpg|png)$ $1@2x.$2
# if @2x isn't available fulfill the original request
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)@2x\.(gif|jpg|png)$ $1.$2
</IfModule>发布于 2013-08-08 19:26:16
IIS7及以上版本中的URL重写模块提供了一个导入特性,极大地简化了将Apache规则转换为IIS重写规则的过程。
重写规则
https://stackoverflow.com/questions/18133966
复制相似问题