【发布时间】:2013-10-14 08:36:19
【问题描述】:
我看到了一些关于如何将 IIS 转换为 htaccss 的示例。
我使用的是 httpd conf(出于性能原因)+ 我使用了 IIS 的在线转换器 --> htaccess。
转换此规则时:
<rule name="videorecords URL" patternSyntax="Wildcard">
<match url="videorecords/*" />
<conditions logicalGrouping="MatchAll" trackAllCaptures="false" />
<action type="Rewrite" url="videorecords/{R:1}" />
</rule>
到:
#RULE VIDEORECORDS URL
RewriteRule videorecords/* videorecords/$1 []
apache 没有加载,我在日志中看到: httpd.conf 第 211 行的语法错误:RewriteRule: unknown flag ''
【问题讨论】:
标签: apache iis mod-rewrite redirect url-rewriting