|
| Register now to interact with over 11,000 members! Registered users have Posting Privileges, free access to Private Messaging, Email Notifications and more. |
|
|||||||
![]() |
|
|
Thread Tools | Search this Thread |
|
|
#1 |
|
Join Date: Dec 2003
Location: NC
Posts: 94
Reputation: 5
|
Cannot get admin panel to request username and password
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. |
|
|
|
|
#2 |
|
XPW
Join Date: Jun 2002
Location: New Hampshire, USA
Posts: 9,464
Reputation: 265
|
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.
__________________
Steve |
|
|
|
|
#3 |
|
Join Date: Dec 2003
Location: NC
Posts: 94
Reputation: 5
|
Thanks, Steve, but it still won't ask for a username and password.
|
|
|
|
|
#4 |
|
XPW
Join Date: Jun 2002
Location: New Hampshire, USA
Posts: 9,464
Reputation: 265
|
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.
__________________
Steve |
|
|
|
|
#5 |
|
Posts: n/a
|
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 |
|
|
#6 |
|
XPW
Join Date: Jun 2002
Location: New Hampshire, USA
Posts: 9,464
Reputation: 265
|
That's why I suggested uploading them as .txt files and renaming.
__________________
Steve |
|
|
![]() |
| Thread Tools | Search this Thread |
|
|