用php重新配置iis

时间:2012-10-19 09:09:54

标签: php .htaccess iis rewrite

我使用IIs6作为我的网络服务器这是我的重写规则

RewriteBase /
RewriteCond %{REQUEST_FILENAME} \.(html|htm|php|php2|php3|php4|php5|phtml|pwml|inc|asp|aspx|ascx|jsp|cfm|cfc|pl|cgi|shtml|shtm|phtm)$
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?$1 [L] 

问题是'%{REQUEST_FILENAME}!-f'似乎不起作用,当我请求网址时 http:// somesite / shopadmin / index.php,它仍然会重写并跳转到访问http:// somesite / index.php?xxx,

如何解决问题?

我尝试了很多次,看起来'REQUEST_FILENAME'参数不同,因为它在apache中工作?

任何帮助都将是感谢。

0 个答案:

没有答案