Turn Off Directory Access?
- Started
- Last post
- 7 Responses
- ETM0
"Can I drop my main index.html file into the "images" folder and just have it redirect, or does it have to be a new, blank index.html?"
-designquestionsNo, not your site home page index file (that would load but your paths would be screwed up). A new one with either a message you wish to convey to people trying to access the images directory, or with a redirect to your domain.
- Got it, this is good enough. http://www.instant-w…designquestions
- THANKSdesignquestions
- ETM0
"I don't want a list of files in my directory to show up in Google."
-designquestionsThen use a robot.txt file. That's what it's made for.
- and put your .htaccess in your root directory.ETM
- THANKSdesignquestions
- designquestions0
Can I drop my main index.html file into the "images" folder and just have it redirect, or does it have to be a new, blank index.html?
- mg330
Good reminder to do this actually.
- ETM0
So you don't want someone to see a list of files in your images directory? If you don't know your way around .htaccess, just drop an index file in that folder. That's what will load instead. Either have it redirect to your home page, or include a specific error or message.
- I don't want a list of files in my directory to show up in Google.designquestions
- utopian0
place .htaccess in the root directory.
- designquestions
Following an online tutorial, I put a file called .htaccess in my website "images" folder with this line:
Options -Indexes
It disabled all my images though. Where do I put it, and what can I add to have it redirect to my main index.html page?