【发布时间】:2013-02-14 07:25:44
【问题描述】:
我需要将 .htaccess 转换为 web.config 才能在 iis 7 上运行 php。有什么想法吗?
Options +FollowSymLinks +SymLinksIfOwnerMatch
RewriteEngine On
RewriteBase /test
RewriteCond %{SCRIPT_FILENAME} !-f
RewriteCond %{SCRIPT_FILENAME} !-d
RewriteRule ^(.*)$ index.php
【问题讨论】:
-
我一直不明白为什么人们坚持使用 IIS 来运行 PHP 等问题。但有人告诉我,MS 提供了一个转换工具,它可以自动将 .htaccess 样式文件转换为 IIS 所需的文件。你试过那个工具吗?
标签: .htaccess iis iis-7 web-config url-rewrite-module