Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't password protect a folder with htaccess #87

Closed
tyeeman opened this issue Oct 12, 2013 · 2 comments
Closed

Can't password protect a folder with htaccess #87

tyeeman opened this issue Oct 12, 2013 · 2 comments

Comments

@tyeeman
Copy link

tyeeman commented Oct 12, 2013

I am making a members area and want to password protect a folder. I chose htaccess for now but a php include I also have available is not working too. First htaccess.

I have done this many times in the past and it works fine. Same here. I add .htaccess into the folder to protect and have the path to the .htpasswd file in there. Proof it works - If I manually type in the path to this folder I get the password window showing, great. Now the problem is that Pico does not use the "content" folder in it's url, so if I click on the menu item to any specific file in this folder, everything just shows without any password prompt. I've tried adding to the root .htaccess file the "File" directive amougst others and have had no luck doing anything. Any suggestions on how to make this work?

Re: the php include method, I added the include to the very top of my template and that does not work either. The php include code shows on the source code of the page in the browser. Any tips would be appreciated.

@shoostar
Copy link

Have a look at this. :)

@tyeeman
Copy link
Author

tyeeman commented Oct 13, 2013

Yes, I looked at that yesterday, but it protects the whole site, I just want one folder (and sub folders) protected. I left a question asking if this was possible. Do you know if it is? Maybe I just add the code to whatever folder I want to protect, but I'm not so sure it will work that way without a modification.

@theshka theshka closed this as completed Apr 28, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants