и мой файл /var/www/html/wordpress/.htaccess выглядит так
Код: Выделить всё
order allow,deny
allow from my_ip
ErrorDocument 403 /var/www/error_page/error.html
RewriteEngine On
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
Код: Выделить всё
Forbidden
You don't have permission to access this resource.
Additionally, a 403 Forbidden error was encountered while trying to use an ErrorDocument to handle the request.
Apache/2.4.59 (Debian) Server at example.com Port 443
Подробнее здесь: https://stackoverflow.com/questions/787 ... t-handling