Tôi có một tập tin htaccess rằng nó hoạt động hoàn hảo trên máy chủ nhưng khi tôi đặt nó trên địa phương, nó cho thấy tôi lỗi này:Internal Server Error - htaccess
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator, [email protected] and inform them of the time the error occurred, and anything you might have done that may have caused the error.
More information about this error may be available in the server error log.
tôi thấy cảnh báo này trong log file lỗi:
[Tue Apr 17 10:02:25 2012] [alert] [client 127.0.0.1] D:/wamp/www/jivan/sql/.htaccess: Invalid command 'Header', perhaps misspelled or defined by a module not included in the server configuration
này là mã tập tin htaccess của tôi:
RewriteEngine On
AddDefaultCharset utf-8
RewriteRule ^([0-9-]+)/keyword_show.html$ keyword_show.php?keyword_id=$1
RewriteRule ^page_(.*).html$ page.php?url=$1
RewriteRule ^([0-9-]+)/(.*)/(.*)/(.*).html$ $2.php?advertisement_cat=$1&id=$3&pagenumber=$4
RewriteRule ^([0-9-]+)/(.*)/(.*).html$ $2.php?advertisement_cat=$1&pagenumber=$3
RewriteRule ^([0-9-]+)/(.*).html$ $2.php?advertisement_cat=$1
# cache images and flash content for one month
<FilesMatch ".(flv|gif|jpg|jpeg|png|ico|swf)$">
Header set Cache-Control "max-age=2592000"
</FilesMatch>
# cache text, css, and javascript files for one month
<FilesMatch ".(js|css|pdf|txt)$">
Header set Cache-Control "max-age=2592000"
</FilesMatch>
máy chủ địa phương của tôi chạy bởi wamp và tôi kích hoạt viết lại mô-đun quá! !!
vì vậy, điều gì sẽ xảy ra? !!
câu trả lời tốt nhất [ở đây] (http://www.steptoinstall.com/wamp-500-internal-server-error-htaccess-php-codeigniter.html) –