Currently, when you visit my website’s sub folders, it shows the directory listing. That’s really scary since it contains php classes with sensitive information. Now I was successful in turing off the directory listing by using “IndexIgnore *” in my root .htaccess file. That partially works by showing a blank directory listing. However, I would like to be able to do one of the following two if it is possible:
-
Redirect to a folder above, and if that folder doesn’t contain an index.php either, go up another level. Handy for folders such as http://www.duaworld.com/resources/images/about
-
If that’s not possible, simply redirect to the root of the site
I had a look at the following question but that only works if there is a 403 error message. In my case, it shows a blank directory, no error.
Thanks alot for the help guys.
may be this is probably best solution for you request
Thanks