导入mod_rewrite规则问题 [英] Import mod_rewrite Rules Problem
问题描述
我正在尝试在IIS中转换此文件时遇到这些错误mod_rewrite
Hi im getting these errors when im trying to to convert this file in IIS mod_rewrite
Options -MultiViews
RewriteEngine On
RewriteBase /php-login/
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-l
RewriteRule ^(.+)$ index.php?url=$1 [QSA,L]
这里是XML视图如有错误,请查看错误
< rewrite>
<! - 此指令未转换,因为它IIS不支持:RewriteBase /php-login/.-->
< rules>
< rule name =Imported Rule 1stopProcessing = true>
< match url =^(。+)$ignoreCase =false/>
< conditions>
< add input ={REQUEST_FILENAME}matchType =IsDirectoryignoreCase =falsenegate =true/>
< add input ={REQUEST_FILENAME }matchType =IsFileignoreCase =falsenegate =true/>
<! - 不支持条件模式:-l .-->
< / conditions>
< action type =Rewriteurl =index.php?url = {R:1}appendQueryString =true/>
< / rule>
< / rules>
< / rewrite>
Here it is in XML view with the errors please have a look at the errors
<rewrite>
<!--This directive was not converted because it is not supported by IIS: RewriteBase /php-login/.-->
<rules>
<rule name="Imported Rule 1" stopProcessing="true">
<match url="^(.+)$" ignoreCase="false" />
<conditions>
<add input="{REQUEST_FILENAME}" matchType="IsDirectory" ignoreCase="false" negate="true" />
<add input="{REQUEST_FILENAME}" matchType="IsFile" ignoreCase="false" negate="true" />
<!--The condition pattern is not supported: -l.-->
</conditions>
<action type="Rewrite" url="index.php?url={R:1}" appendQueryString="true" />
</rule>
</rules>
</rewrite>
推荐答案
index.php?url =
index.php?url=
1 [QSA,L]
1 [QSA,L]
这是XML视图中的错误,请查看错误
< rewrite>
<! - 此指令未转换,因为IIS不支持:RewriteBase /php-login/.-->
< rules>
< rule name =导入规则1stopProcessing =true>
< match url =^(。+)
Here it is in XML view with the errors please have a look at the errors
<rewrite>
<!--This directive was not converted because it is not supported by IIS: RewriteBase /php-login/.-->
<rules>
<rule name="Imported Rule 1" stopProcessing="true">
<match url="^(.+)
ignoreCase =false/>
< conditions>
< add input ={REQUEST_FI LENAME}matchType =IsDirectoryignoreCase =falsenegate =true/>
< add input ={REQUEST_FILENAME}matchType =IsFileignoreCase =false否定=true/>
<! - 不支持条件模式:-l .-->
< / conditions>
< action type =Rewriteurl =index.php?url = {R:1}appendQueryString =true/>
< / rule>
< / rules>
< / rewrite>
" ignoreCase="false" />
<conditions>
<add input="{REQUEST_FILENAME}" matchType="IsDirectory" ignoreCase="false" negate="true" />
<add input="{REQUEST_FILENAME}" matchType="IsFile" ignoreCase="false" negate="true" />
<!--The condition pattern is not supported: -l.-->
</conditions>
<action type="Rewrite" url="index.php?url={R:1}" appendQueryString="true" />
</rule>
</rules>
</rewrite>
这篇关于导入mod_rewrite规则问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!