Maison  >  Article  >  développement back-end  >  Invalid command 'RewriteCompatibility2' ?

Invalid command 'RewriteCompatibility2' ?

WBOY
WBOYoriginal
2016-06-06 20:43:011354parcourir

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

给大家添麻烦了

Déclaration:
Le contenu de cet article est volontairement contribué par les internautes et les droits d'auteur appartiennent à l'auteur original. Ce site n'assume aucune responsabilité légale correspondante. Si vous trouvez un contenu suspecté de plagiat ou de contrefaçon, veuillez contacter admin@php.cn