【发布时间】:2014-07-03 16:51:56
【问题描述】:
我的 .htaccess 文件有这样的 url 重写规则。
RewriteEngine on
RewriteRule ^(scripts|css)/(.+)\.(.+)\.(js|css)$ $1/$2.$4 [L]
我需要在我的 IIS 上使用相同的规则。
我使用^(.*)\.[\d]{10}\.(css|js) 作为模式。
我不知道该提什么Rewrite URL。
我想把网址/css/structure.1234.css改写成/css/structure.css
谁知道请帮忙?
【问题讨论】:
标签: regex apache .htaccess iis url-rewriting