htaccess question...

Out of context: Reply #8

  • Started
  • Last post
  • 8 Responses
  • rabattski0

    no you can't. however you can have the .htpasswd in the same folder as the .htaccess although it's not really safe. but as long as you use real passwords than it shouldn't be that big of an issue.

    what error do you get? i think the most probable cause when .htaccess doesn't work is a wrong path definition (the one in .htaccess which defines where the .htpasswd is). check with your host what that path should be or write a small php script and define a variable as $_SERVER['DOCUMENT_ROOT'] and print_r it. it should show the path the root of the php script.

View thread