.htacces secure website error


#1

Hey guys, I have a question. I tried to secure my website with a .htacces file and a .htpasswd file, unfortunately local everything runs smoothly and well. When I upload it tot 000webhost and log in to my website. I get the error 500 with check your logs. But the logs don’t give any error (can only find one log…?)

Can someone help me?
Thanks in advance

.htacces file:
AuthType Basic
AuthName “restricted area”
AuthUserFile http://www.personalagenda.tk/.htpasswd
require valid-user

.htpasswd file:
username:password


#2

@ckhawand @ayu @teodor thoughts?


#3

Hi @supertom01!

If you want to protect your public folders please consider using the function from 000webhost cPanel > Settings > Security instead. We are using a different algorithm :slight_smile:


#4

Thanks a lot. It works like a charm right now :slight_smile:

Greetings


#5

We’re glad the issue has been solved! :blush:


#6