我进入我的服务器错误日志.
[Mon Jan 27 08:04:06 2014] [alert] [client x.x.x.x] /home/…/public_html/.htaccess: Invalid command ‘Header’,perhaps misspelled or defined by a module not included in the server configuration
这是我的简单.htaccess:
<IfModule mod_rewrite.c> Options -MultiViews PHP_flag display_startup_errors on PHP_flag display_errors on PHP_flag html_errors on RewriteEngine On RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^ silex.PHP/ [L] </IfModule>
可能有什么不对?
解决方法
可能是因为未启用mod_headers.尝试运行a2enmod标头以启用该模块.