我的.htaccess
文件中有以下规则
RewriteEngine On
RewriteCond %{REQUEST_URI} ^/admin/
RewriteRule !\.(js|ico|gif|jpg|jpeg|bmp|png|swf|css|html|htm|php|rar|xml|ani|cur|mp3|mp4|flv|tpl|inc)$ /admin/index.php [L,NC]
RewriteCond %{REQUEST_URI} !^/admin/
RewriteRule !\.(js|ico|gif|jpg|jpeg|bmp|png|swf|css|html|htm|php|rar|xml|ani|cur|mp3|mp4|flv|tpl|inc|doc|exe|zip)$ index.php [L,NC]
我想为IIs更改它,如何更改?
[ISAPI_Rewrite]
RewriteEngine On
RewriteCond %{REQUEST_URI} !(/admin/.*) [NC]
RewriteRule ^[\w/\%]*(?:\.(?!(?:js|ico|gif|jpg|jpeg|bmp|png|swf|css|html|htm|php|rar|xml|ani|cur|mp3|mp4|flv|tpl|inc|doc|exe|zip|txt)$)[\w\%]*$)? /index.php [I]
RewriteCond %{REQUEST_URI} (/admin/.*) [NC]
RewriteRule ^[\w/\%]*(?:\.(?!(?:js|ico|gif|jpg|jpeg|bmp|png|swf|css|html|htm|php|rar|xml|ani|cur|mp3|mp4|flv|tpl|inc|doc|exe|zip|txt)$)[\w\%]*$)? /admin/index.php [I]