So, I have added this code in my htaccess to ask for login upon page visit. But it gives a 500 Internal Server Error when I open the page. The database connection is fine. I checked it. What can be wrong with the code? I dont get any errors in the error log. AuthUserFile /dev/null AuthBasicAuthoritative Off AuthMySQL on AuthMySQL_Authoritative on Auth_MySQL_Host "Database Host" Auth_MySQL_User "UserName" Auth_MySQL_Password "Password" AuthMySQL_DB "Databse" AuthMySQL_Password_Table ftp_users AuthMySQL_Username_Field...