SaintsLair1 Posted January 10, 2007 Posted January 10, 2007 Hi All, The "Index of/" page appears when I try to open www.TheCrayonBin.com/store/ . It is located in my public_html folder and has an index.php file. It will load fine with www.TheCrayonBin.com/store/index.php. I just want to keep the folders and files secure and not have them viewable by anyone that comes along. Any help would be greatly appreciated. Thank you, Andy Quote
TCH-Andy Posted January 10, 2007 Posted January 10, 2007 Hi Andy, Check in the .htaccess in the public_html directory. I'd guess it has a "directoryindex" command which is forcing it not to look at the index.php file. Quote
SaintsLair1 Posted January 10, 2007 Author Posted January 10, 2007 Thanx Andy, for the speedy reply. I placed .htaccess file into the folder with the line "directoryindex index.php". should this file contain anything else for security reasons? Thanks again, Andy Quote
TCH-Andy Posted January 10, 2007 Posted January 10, 2007 You're welcome I'm glad it's all sorted No, you shouldn't need anything else from a security viewpoint. Quote
MikeJ Posted January 11, 2007 Posted January 11, 2007 You may want to add the line: Options -Indexes to .htaccess as well. That will prevent directory listings from displaying in the event a directory doesn't have an index page. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.