Rumah  >  Artikel  >  pembangunan bahagian belakang  >  Invalid command 'RewriteCompatibility2' ?

Invalid command 'RewriteCompatibility2' ?

WBOY
WBOYasal
2016-06-06 20:43:011351semak imbas

用的是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后,就没错误了。。。

给大家添麻烦了

Kenyataan:
Kandungan artikel ini disumbangkan secara sukarela oleh netizen, dan hak cipta adalah milik pengarang asal. Laman web ini tidak memikul tanggungjawab undang-undang yang sepadan. Jika anda menemui sebarang kandungan yang disyaki plagiarisme atau pelanggaran, sila hubungi admin@php.cn