2014-12-07 22 views
0

我使用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] 
+1

錯誤日誌說? – 2014-12-07 15:55:35

+0

服務器遇到內部錯誤或配置錯誤,無法完成您的請求。 – 2014-12-07 15:56:26

+1

錯誤** LOG **,而不是錯誤** PAGE **。 – 2014-12-07 15:56:54

回答

0

錯誤日誌:無效命令「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文件並取消國防部重寫線。