PDA

View Full Version : .htaccess


Jamie
February 20th, 2005, 21:37
Is it possible to host the .htpasswd on a different server from the .htaccess file that uses the .htpasswd file?

The reason I ask is because I am dealing with a 1&1 account and can't get access to any directories lower than the public one so for security issues I am wanting to host the .htpasswd file on one of my own websites above public_html so it can't be accessed and then call that .htpasswd file from the .htaccess file that will be on the 1&1 server.

Steve
February 20th, 2005, 22:44
I don't think you can, but even if you could, it would have to be in a public directory on their too so it wouldn't help much.


Not sure about this, but couldn't you just chmod the .htpasswd file so its not readable by the public?

If you had to, you could just create some directories:
/site/kdhfOf8y327i8hoidsah08yehf824hf8/.htpasswd

Jamie
February 21st, 2005, 16:48
That will do as a solution, thanks Steve.