Why is IndexIgnore used in htaccess not hiding files as it should?

Avatar
  • Answered
I am attempting to hide certain files in a directory listing (index.php, style.css) by using IndexIgnore within my .htaccess file. The following code should but working but is not:

IndexIgnore .htaccess *.php *.css *.js

To be clear, when navigating to a directory, all files within that directory should appear except for the file type extensions listed above. No special software such as WordPress is installed on the subdomain which is hosting this file. Any ideas?

Thank you!
Avatar
-1
Arn
Hello, Sorry, you're having problems with the IndexIgnore command in your .htaccess file. I don't believe you're using that command correctly. Check it out using IndexIgnore. Try changing the command and let us know if you continue to have problems. If you have any further questions or comments, please let us know. Regards, Arnel C.