Привіт, я отримую наступну помилку в моєму файлі журналу помилок Apache ... і 500 внутрішніх помилок сервера допомагають мені вирішити це ..
[Wed Mar 13 16:33:13 2013] [alert] [client 127.0.0.1] C:/wamp/www/phpwork/.htaccess: </files> without matching <files> section, referer: http://localhost/
мій файл .htaccess є
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteRule (.*.(png|gif|jpg|jpeg|js|css|swf))$ webroot/img_handler.php?arg=$1 [L]
RewriteRule ^$ webroot/ [L]
RewriteRule (.*) webroot/$1 [L]
</IfModule>
# disable directory browsing -IMPORTANT, do NOT remove.
Options -Indexes
# protect the htaccess file
<files .htaccess>
order allow,deny
deny from all
</files>
# disable the server signature
ServerSignature Off
# protect php.ini
#<files *.ini>
order allow,deny
deny from all
</files>
Відповіді:
0 для відповіді № 1# protect php.ini
#<files *.ini>
order allow,deny
deny from all
</files>
тут ви прокоментували директиву "файлів"
будь ласка, видаліть коментар, щоб ваш розділ файлів був таким самим:
<files *.ini>
order allow,deny
deny from all
</files>