【问题标题】:Looking for a correct .htaccess rewrite for IIRF.ini (IIS6)为 IIRF.ini (IIS6) 寻找正确的 .htaccess 重写
【发布时间】:2013-02-24 02:27:45
【问题描述】:

我在使用 Windows 主机时遇到了一些问题。 我们正在使用 PHP,需要一个 mod_rewrite。

然而 windows 不支持 .htaccess。 我们确实有 IIRF。

有人可以帮我把这个 .htaccess 翻译成一个工作的 IIRF.ini 文件吗?

<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /new/
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /new/index.php [L]
</IfModule>

会摇滚。

【问题讨论】:

    标签: iis mod-rewrite rewrite ini


    【解决方案1】:

    试试这个:

    RewriteCond %{REQUEST_FILENAME} !-f<br>
    RewriteCond %{REQUEST_FILENAME} !-d<br>
    RewriteRule /. /new/index.php [L,QSA]
    

    它适用于 Windows Server 2003、IIS 6、IIRF 2.1 和 Wordpress 3.8。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2014-10-04
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2016-11-10
      • 1970-01-01
      相关资源
      最近更新 更多