.htaccess - password protect cijelu stranicu

Pozdrav svima,

Htio bih zaštiti .htaccess-om pristup cijeloj domeni ( stranici i admin dijelu isto tako ).
.htacces mi izgleda ovako:

# BEGIN WordPress<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /a-team/
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /a-team/index.php [L]
</IfModule>

#END WordPress

AuthType Basic
AuthName "restricted area"
AuthUserFile /www/wp-includes/.htpasswd
require valid-user

No nakon što se ulogiram, dobijem sljedeću grešku:
“The script could not be executed correctly.
Please refer to your error log for details about this error. You find it in your KIS under the item “Product Admin > YOUR PRODUCT > Konfigurieren > Logfiles”. Further information can also be found in our FAQ.”.

I u logovima ne piše ništa specifično vezano za grešku, samo browser trenutnog korisnika i slično, nikakav opis greške.
Probavao mijenjati lokaciju .htpasswd file-a, no uvijek ista stvar.
.htacess stoji u root-u wp-a.
Je li imao netko iskustva s ovime?


Copyright © 2020 WM Forum - AboutContact - Sponsored by: Mydataknox & Profit Monkey