Can I use htpasswd to password protect a directory?

Asked by:
sidd@patwardhans.net
Time:
2011-10-04 10:59 pm
Category:
How To
Hits:
802
I need to password protect a directory on my website, and I was trying to use .htpasswd to achieve this. I keep getting an "Internal Server Error" if I try to access that URL from a browser. The server logs don't seem to have a meaningful message (except that 501.shtml and 400.shtml files are not found). Is there anything else that I need to do get this set up? Is there any way to find out what may be causing the internal server error?

Thanks.

-- Sid.

You must login before you can ask a follow up question.

You must login before you can submit an answer.

Best answer chosen by Web Hosting Hub staff

0

ChristiNi
2011-10-05 12:08 am
Hello Sid,

I'm sorry you're having trouble password protecting your directory. I'm happy to help you with that. cPanel offers the option to password protect a directory and will write to the .htaccess file in order to accomplish that. For step-by-step instructions, please see How to Password Protect a Directory

Please let us know if you have any questions or need further assistance, we're always happy to help.

Thank you,

Christi N

You must login before you can post a comment about this answer.

Like this Question?

Support Center Search

Current Customers

Email: support@WebHostingHub.com Ticket: Submit a Support Ticket
Call: 877-595-4HUB (4482)
757-416-6627 (Intl.)
Chat: Click To Chat Now

Ask the Community

Get help with your questions from our community of like-minded hosting users and Web Hosting Hub Staff.

Not a Customer?

Get web hosting from a company that is here to help.