仍然得到500内部服务器错误appserv
问题描述:
我使用Appserv Apache和我当我使用.htaccess文件我仍然收到500内部服务器错误...我试过每一件事,并确保每件事情都是正确的, m从httpd.conf文件中删除了#:LoadModule rewrite_module modules/mod_rewrite.so ..... 并重新启动了Appserv .. 但我仍然收到500内部服务器错误..任何帮助? 这是htaccess的: - 选项-MultiViews仍然得到500内部服务器错误appserv
RewriteEngine On
RewriteBase /mvc/public
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.+)$ index.php?url=$1 [QSA,L]
答
错误日志:无效命令“RewriteEngine叙述”,也许拼错或定义由模块不包含在服务器配置
此意味着你没有在服务器中启用mod_rewrite。请参阅:.htaccess: Invalid command 'RewriteEngine', perhaps misspelled or defined by a module not included in the server configuration
您需要可以打开它使用
sudo a2enmod rewrite && sudo service apache2 restart
如果你正在使用Ubuntu,或编辑httpd.conf
文件并取消国防部重写线。
错误日志说? – 2014-12-07 15:55:35
服务器遇到内部错误或配置错误,无法完成您的请求。 – 2014-12-07 15:56:26
错误** LOG **,而不是错误** PAGE **。 – 2014-12-07 15:56:54