PDA

View Full Version : Cannot get admin panel to request username and password


67mustang
12-18-04, 10:27 PM
After writing, uploading, correcting an reuploading dozens of .htaccess files, I still cannot get the admin panel to request my username and password. I've tried to do it exactly like stevel showed me (actually did for me) for another Web site but still cannot get it to work.

Here's what I have in .htaccess:

AuthUserFile /www/i/s/imstupid.com/etc/.htpasswd
AuthGroupFile /dev/null
AuthName "protected page"
AuthType Basic

require valid-user

I have the real username in the AuthUserFile, not imstupid, which would be more appropriate right now.

.htpasswd is uploaded to the etc directory.

.htaccess and .htpasswd are text documents. I'm working in Dreamweaver and writing the files in code view, which says they are indeed text documents.

Thanks for your help.

stevel
12-19-04, 09:50 AM
Try this. Delete the .htaccess and .htpasswd on the site. Rename these files on your local system to htaccess.txt and htpasswd.txt. Upload them, then rename them to the proper names. I've sometimes had issues with Dreamweaver not choosing the proper upload type, though it generally works for me nowadays.

BTW, Dreamweaver will happily edit files in the "UNIX" text format.

67mustang
12-19-04, 06:51 PM
Thanks, Steve, but it still won't ask for a username and password.

stevel
12-19-04, 07:31 PM
Where are you putting the .htaccess file? Are you sure it is spelled exactly that way, in lowercase?

If you want, send me a PM with your domain name and FTP login info (create a new FTP user for me if you want - include the FTP server name) and I'll take a look.

MaryM
12-31-04, 02:17 PM
I'm far from a guru but I've had problems getting files uploaded when they start with a . like .hta. I've had to upload them without the . and then change the name once they are on the server.

I use wsftp and dreamweaver.

Hope this helps,

MaryM

stevel
12-31-04, 05:37 PM
That's why I suggested uploading them as .txt files and renaming.