Password protect directories problem

Status
Not open for further replies.

javierh2

New Member
Messages
3
Reaction score
0
Points
1
Hi, I have created a web using the autobuilder: soho, and when I finished, I locked almost every folder with the password protect directories option. Now I need to change the web, so I need url-access to "myweb/soho", and when I do that, the web asks me username and password. I'm trying to enter the username and password I think I used but It's not working. I've also tried to create a new user and password and protect this folder with it and it doesn't work too. I have even try to create a new folter "test", and protect it with a new user and password, and when I try to enter on "myweb/test" and I enter the new user and pass, it doesn't work too. Is there any way you could disable the password protection for me? Or if you could give me some advise like changing some files (like for example .htaccess) to disable it for myself it'll be fine. Thank you very much.
 

descalzo

Grim Squeaker
Community Support
Messages
9,373
Reaction score
326
Points
83
cPanel --> FileManager (or FTP to site)
Go to directory in question
Open .htaccess for editing (you must have "show hidden files" enabled)
Find a section like:

Code:
AuthUserFile  /home/igor/.htpasswd
AuthName "Secret Stuff"
AuthType Basic
require valid-user

You can either:
1) Erase those lines
OR
2) Place a # at the beginning of each line which turns them into comments ... good if you want to reverse the process later
 

javierh2

New Member
Messages
3
Reaction score
0
Points
1
Thank you, it works perfectly, you can now close the thread if you want. Thank you very much.
 
Status
Not open for further replies.
Top