当前位置:Gxlcms > PHP教程 > Invalidcommand'RewriteCompatibility2'?

Invalidcommand'RewriteCompatibility2'?

时间:2021-07-01 10:21:17 帮助过:21人阅读

用的是phpStudy,php 5.2,apache 2.4。

出错信息:

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

.htaccess文件:

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

#  3600 = 1 hour
# unsupported directive:    CacheClockRate 3600

在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文件:

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

#  3600 = 1 hour
# unsupported directive:    CacheClockRate 3600

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

LoadModule isapi_module modules/mod_isapi.so

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

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

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

给大家添麻烦了

人气教程排行