tibberous Posted November 7, 2007 Share Posted November 7, 2007 I am trying to protect a directory from auto listing it's contents. I tried putting a directory tag in my htaccess like Google said but it kept giving me an error 500. Does anyone know the correct way to do this? Quote Link to comment Share on other sites More sharing options...
roopurt18 Posted November 7, 2007 Share Posted November 7, 2007 The most likely causes are that you had a syntax error in your .htaccess or the main httpd.conf has AllowOverride set to None. You shouldn't need a directory section in the .htaccess since the .htaccess should be in the directory you want to protect. The only line you should need is: Options -Indexes Quote Link to comment Share on other sites More sharing options...
tibberous Posted November 7, 2007 Author Share Posted November 7, 2007 Awesome, thanks a ton, it works great! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.