Question htaccess problem ( SitePoint Forums Just Starting Your Design ) Updated: 2008-08-12 07:19:00 (5)
htaccess problem
Here is a question from a newbe!
I want to have a htaccess protection in my public_html folder, but can't make it work. I have read many tutorials but no one tells exactly how it works.
Here is the code i have uploaded trough FTP to the public_html folder (.htaccess):
AuthUserFile /~ACCOUNTNAME/.htpasswd
AuthGroupFile /dev/null
AuthName "Please enter username and password"
AuthType Basic
<Limit GET POST>
order allow,deny
allow from all
require valid-user
</limit>
Then I logged on via SSH to my account. After I typed inn my username and password I typed inn the folowing code:
htpasswd -c .htpasswd username
Adding password for username.
New password:
password
Re-type new password:
password
When I try to access the public_html folder I just get the message that I have typed a wrong password.
Please help!!
One other thing! The tutorials say that if I want to delete usernames/passwords then I have to download the .htpasswd file. HOW!!!! There is no trace of those files in the FTP.
Thanks
Answers: htaccess problem ( SitePoint Forums Just Starting Your Design )
htaccess problem
About there being no trace... see this thread: http://sitepointforums.com/showthrea...threadid=26706
Ted
htaccess problem
a built in feature of Linux/Unix is making files beginning with a "." hidden. The thread Ted gave gives some explanation on this.
SKetch
Technosailor
htaccess problem
Great! I got that password thing working
But I still can't download those files. I cant even find the .htaccess file (in the public_html folder)!! I am using SSH.
How do I download files using SSH??
Thanks
Shantra
htaccess problem
To view all files (including hidden ones) type ls -a at the shell prompt. Then you can access those files.
creole
htaccess problem
Quote:
Originally posted by creole To view all files (including hidden ones) type ls -a at the shell prompt. Then you can access those files.
Well, the .htaccess is not there! Not even in the folders.