PowWeb Forums - The Perfect Community for the Perfect Host  

Register now to interact with over 11,000 members! Registered users have Posting Privileges, free access to Private Messaging, Email Notifications and more.

Go Back   PowWeb Community Forums > Web Site Design > Content Management Systems > E-commerce and Shopping Carts
User Name
Password
Register FAQ Members List Search Today's Posts Mark Forums Read

Closed Thread
 
Thread Tools Search this Thread
Old 12-18-04, 10:27 PM   #1
67mustang
 
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.
__________________
Doug Boyd
Greenville, NC
http://www.boydscapes.com
http://www.ecmsracing.com
67mustang is offline  
Old 12-19-04, 09:50 AM   #2
stevel
XPW
 
stevel's Avatar
 
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
stevel is offline  
Old 12-19-04, 06:51 PM   #3
67mustang
 
Join Date: Dec 2003
Location: NC
Posts: 94
Reputation: 5
Thanks, Steve, but it still won't ask for a username and password.
__________________
Doug Boyd
Greenville, NC
http://www.boydscapes.com
http://www.ecmsracing.com
67mustang is offline  
Old 12-19-04, 07:31 PM   #4
stevel
XPW
 
stevel's Avatar
 
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
stevel is offline  
Old 12-31-04, 02:17 PM   #5
MaryM
 
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
 
Old 12-31-04, 05:37 PM   #6
stevel
XPW
 
stevel's Avatar
 
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
stevel is offline  
Closed Thread


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT -4. The time now is 11:51 AM.


Contents ©PowWeb, Inc. ~ vBulletin, Copyright © 2000-2007 Jelsoft Enterprises Limited.