1

私の.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]
4

0 に答える 0