http防盜鏈接:加了.htaccess文件后頁面訪問提示500,http.conf文件配置修改了
RewriteEngine?on RewriteCond?%{REQUEST_FILENAME}?.*\.(jpg|jpeg|png|gif)?[NC] RewriteCond?%{HTTP_REFERER}?!^?http://localhost/.*$[NC] RewriteRule?.*error.jpg
網頁報錯內容:
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator at [email protected] to inform them of the time this error occurred, and the actions you performed just before this error.
More information about this error may be available in the server error log.
2018-05-25
RewriteRule?.*error.jpg?是這里錯了,要注意 .*和error.jpg中間有個空格:RewriteRule?.* error.jpg?
2018-01-05
我也是這個錯,很蒙蔽啊
2017-11-22
記得是放在根目錄下 而不是子文件的目錄下
2017-04-30
apache 500報錯 一般都是程序代碼出現了錯誤