Page is a not externally linkable
- Code, Content, and Presentation
-- Apache Web Server
---- htaccess instead of listing files - show 404 page?


hiccupsheadache - 2:51 pm on Feb 22, 2012 (gmt 0)


Hi all,

Is it possible - that if someone visits a "hidden" folder on my site - a htaccess file makes it look like the folder dosnt exist - with a 404 error page?

I have a folder full of swf games - and i would like the folder to not be accessed. I would love it if anyone trys to access /swf/ they get a 404 -- like the folder is not there.

But my site would still need access to the folder -- i just don't want the contents to be listed when someone visits the link. But the files in the folder would still need to be use?

Thanks so much for anyone who can help :)

(I did this: Options All -Indexes - but it shows the folder is not accessible - where i really don't want people to know its there at all)


Thread source:: http://www.webmasterworld.com/apache/4420489.htm
Brought to you by WebmasterWorld: http://www.webmasterworld.com