Heim  >  Artikel  >  Backend-Entwicklung  >  Invalid command 'RewriteCompatibility2' ?

Invalid command 'RewriteCompatibility2' ?

WBOY
WBOYOriginal
2016-06-06 20:43:011354Durchsuche

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

给大家添麻烦了

Stellungnahme:
Der Inhalt dieses Artikels wird freiwillig von Internetnutzern beigesteuert und das Urheberrecht liegt beim ursprünglichen Autor. Diese Website übernimmt keine entsprechende rechtliche Verantwortung. Wenn Sie Inhalte finden, bei denen der Verdacht eines Plagiats oder einer Rechtsverletzung besteht, wenden Sie sich bitte an admin@php.cn