Jump to content

Recommended Posts

Posted

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

Posted

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.

Posted

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

Posted

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.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...