Bir klasörü (korumak) ve bu klasörün içindeki dosyaları korumak istiyorum. Ben bir. Htaccess dosyası oluşturulur ve aşağıdaki kodu koyduk.
AuthName "Myfolder" AuthType Basic AuthUserFile url/protect/.htpasswd Require valid-user
Also created a .htpassword file which contain username:password
When I run my URL http://localhost/url/protect, I got a pop up asking username and password, I entered username as username and password as password. After that I got an error page "server error 500" "The server encountered an internal error and was unable to complete your request. Either the server is overloaded or there was an error in a CGI script.
Eğer bu bir sunucu hatası olduğunu düşünüyorsanız, webmaster ile irtibata geçiniz. "
Bu neden oldu?. Burada yanlış bir şey var mı? Her şey klasörünün altında benim sayfalarını görmek gerekiyor. Bana cevap verin.