Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> [inne]htacces i htpasswd na serwerze home.pl
jakubpirsi
post
Post #1





Grupa: Zarejestrowani
Postów: 1
Pomógł: 0
Dołączył: 25.11.2013

Ostrzeżenie: (0%)
-----


Mam stronę stworzoną na Wordpressie i chciałbym dodać do niej dodatkowe okno logowania poprzez htpasswd.
Plik .htaccess wygląda następująco:

CODE
AuthName "Enter password"
AuthType Basic
AuthUserFile /users/strony/.htpasswd
<Files "wp-login.php">
Require valid-user
</Files>
ErrorDocument 401 "Denied"
ErrorDocument 403 "Denied"

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

# END WordPress


Problem polega na tym, że po podaniu loginu i hasła okienko wyskakuje ponownie.
Wyczytałem, że serwery na home.pl używają IdeaWebServer.
Proszę o pomoc.
Go to the top of the page
+Quote Post

Posty w temacie


Reply to this topicStart new topic
2 Użytkowników czyta ten temat (2 Gości i 0 Anonimowych użytkowników)
0 Zarejestrowanych:

 



RSS Aktualny czas: 12.10.2025 - 13:13