RewriteCond不能在Apache上工作(但启用)

我在我的apache错误日志文件中得到这些错误:

[Fri May 20 16:17:06 2011] [notice] Apache/2.2.17 (Ubuntu) PHP/5.3.5-1ubuntu7.2 with Suhosin-Patch configured -- resuming normal operations [Fri May 20 16:17:11 2011] [alert] [client 127.0.0.1] /home/zomerovic/vhosts/brillelook/public_html/.htaccess: Invalid command 'RewriteCond', perhaps misspelled or defined by a module not included in the server configuration [Fri May 20 16:17:12 2011] [alert] [client 127.0.0.1] /home/zomerovic/vhosts/brillelook/public_html/.htaccess: Invalid command 'RewriteCond', perhaps misspelled or defined by a module not included in the server configuration [Fri May 20 16:17:12 2011] [alert] [client 127.0.0.1] /home/zomerovic/vhosts/brillelook/public_html/.htaccess: Invalid command 'RewriteCond', perhaps misspelled or defined by a module not included in the server configuration [Fri May 20 16:17:12 2011] [alert] [client 127.0.0.1] /home/zomerovic/vhosts/brillelook/public_html/.htaccess: Invalid command 'RewriteCond', perhaps misspelled or defined by a module not included in the server configuration 

但是我已经启用了mod_rewrite,以及其他apache mod(如a2dismod所说):

 Your choices are: auth_basic authn_file authz_default authz_groupfile authz_host authz_user autoindex cgi deflate dir env headers mime negotiation php5 reqtimeout setenvif status vhost_alias 

RewriteCond与其他一些mod有冲突,还是我错过了什么?

谢谢。

 a2enmod rewrite /etc/init.d/apache2 restart 

它会为你加载重写模块

您所看到的错误并不是因为您没有权限使用重写,而是因为它不可用,如从您提供的a2dismod列表输出中可以看到的(它不出现在列表中)

你可以在你的.htaccess文件中使用mod_rewrite吗?

请参阅AllowOverride FileInfo