Hi everyone,
I’m searched around and can’t seem to find a good solution. I’m sorry of this has been talked about before.
I have ModX installed with no fancy modules or plugins. Friendly URLs are on. I have a directory with files in it that I want to keep ’separate’ from ModX. In other words, I’m not using ModX to edit these pages. Just some straight editing and uploading. Therefore I have not ’created’ the pages on Manager.
I want to password protect this directory using .htaccess. When I do so, the directory can’t be accessed and I am redirected to ModX 404 error page (the home page actually).
I’m assuming there is some sort of ’conflict’ with the .htaccess file in the root that ModX is using for redirects etc.. etc..
My question is:
Can I password protect a directory using .htaccess that I want to keep independent from MoDx, and not get 404 error messages?
Any help would be appreciated!
Glenn
Strange... I have used .htpasswd files with MODx without any problem, so it’s definitely NOT MODx related...
.: COO - Commerce Guys - Community Driven Innovation :.
MODx est l'outil id
I’m having the exact same problem.
Here is my .htaccess file:
AuthType Basic
AuthName "HEAV Images Gallery"
AuthUserFile /home/********/.htpasswds/gallery/.htpasswd
Require valid-use
******** is replaced with valid dir name.
The above dir is outside my web site. Does that make a difference?
I know my passwd file is correct, and I have tried CPanel’s Password protected directory wizard, but it yields the same results - 404 error page as specified in MODx.
PM me to find out how you can get a FREE ipad 2!