mc se7en
New Member
- Messages
- 218
- Reaction score
- 4
- Points
- 0
I've got Options -Indexes on my .htaccess to block access to my directories. However, when you visit certain directories, unintended index files load (created by iWeb, the JS files for the index, aptly named index.js).
Is there anything I can stick in .htaccess to block index.js (but NOT index.html, etc).
Example: www.mcse7en.com/index_files/
I'm attaching a screenshot of the directory's contents so you can see what all is in there. If index.css is going to load, I'd like to block that too and just have it redirect to my 403 page, but without blocking it from loading as part of my index (so the index page can still access the js and css it needs).
Thanks!
Is there anything I can stick in .htaccess to block index.js (but NOT index.html, etc).
Example: www.mcse7en.com/index_files/
I'm attaching a screenshot of the directory's contents so you can see what all is in there. If index.css is going to load, I'd like to block that too and just have it redirect to my 403 page, but without blocking it from loading as part of my index (so the index page can still access the js and css it needs).
Thanks!
Attachments
Last edited: