I want to password protect a directory that uses index.php as the main index file. I’ve updated the .htaccess to include
but I keep getting a 404 error whenever I try to access the directory. There is no pop-up for a username or password, and index.php contains no errors. What the file does is connect to an external MySQL database. can anyone help me figure out what is going wrong?