首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >国防部重写到IIS重写规则问题

问国防部重写到IIS重写规则问题
EN

Stack Overflow用户
提问于 2014-03-19 21:49:41
回答 1查看 751关注 0票数 0

嗨,当我试图在IIS mod_rewrite中转换这个文件时,我得到了这些错误。

此指令未被转换,因为IIS不支持它: RewriteBase /php-login/

和

不支持条件模式:-l

代码语言:javascript
复制
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视图中的错误,请看一下错误。

代码语言:javascript
复制
<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>
EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2014-12-17 07:44:30

因此,所讨论的特性可能不受IIS的支持,您要么不需要它们,要么想出如何用支持的任何东西替换它们。你可能想要相应地重新表述你的问题。- SVD 3月19日22时17分

票数 -1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/22518886

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档