我在使用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>
会摇滚。
答案 0 :(得分:0)
试试这个:
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。