You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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.
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.
The text was updated successfully, but these errors were encountered: