【问题标题】:mod rewrite to IIS rewrite rule issuemod重写到IIS重写规则问题
【发布时间】:2014-03-19 21:49:41
【问题描述】:

您好,当我尝试在 IIS mod_rewrite 中转换此文件时遇到这些错误

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

不支持条件模式:-l

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>
<!--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>

【问题讨论】:

  • 因此,IIS 可能不支持这些功能,您要么不使用它们,要么想办法用支持的东西替换它们。您可能需要相应地重新表述您的问题。
  • 我不知道让它工作有没有办法,因为我真的需要它,或者你有任何其他具有相同功能的解决方案吗?

标签: .htaccess iis mod-rewrite web-config


【解决方案1】:

因此,IIS 可能不支持这些功能,而您 要么没有它们,要么想办法用它们替换它们 什么都支持。您可能想重新表述您的问题 因此。 – SVD 3 月 19 日 22:17

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2017-02-15
    • 1970-01-01
    • 2010-11-13
    • 2012-05-13
    • 2012-07-12
    • 1970-01-01
    • 2012-06-14
    • 2012-05-15
    相关资源
    最近更新 更多