Home  >  Article  >  Backend Development  >  Invalid command 'RewriteCompatibility2' ?

Invalid command 'RewriteCompatibility2' ?

WBOY
WBOYOriginal
2016-06-06 20:43:011352browse

用的是phpStudy,php 5.2,apache 2.4。

出错信息:

Invalid command 'RewriteCompatibility2', perhaps misspelled or defined by a module not included in the server configuration

.htaccess文件:

<code>RewriteEngine On
RewriteCompatibility2 On
RepeatLimit 32
RewriteBase 
# unsupported directive: [ISAPI_Rewrite]

#  3600 = 1 hour
# unsupported directive:    CacheClockRate 3600
</code>

在http.config里也添加上了ISAPI:

LoadModule isapi_module modules/mod_isapi.so

查了半天也没发现问题在哪儿,请大家帮忙看下是什么问题

回复内容:

用的是phpStudy,php 5.2,apache 2.4。

出错信息:

Invalid command 'RewriteCompatibility2', perhaps misspelled or defined by a module not included in the server configuration

.htaccess文件:

<code>RewriteEngine On
RewriteCompatibility2 On
RepeatLimit 32
RewriteBase 
# unsupported directive: [ISAPI_Rewrite]

#  3600 = 1 hour
# unsupported directive:    CacheClockRate 3600
</code>

在http.config里也添加上了ISAPI:

LoadModule isapi_module modules/mod_isapi.so

查了半天也没发现问题在哪儿,请大家帮忙看下是什么问题

问题解决了,但可能跟我之前确定的问题没啥关系。

因为我运行的是另一套商业程序,这套程序是架在iis上的,所以后来换成iis后,就没错误了。。。

给大家添麻烦了

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn