Jump to content

I’m trying to disable directory listing using .htaccess


Recommended Posts

Posted

I’m trying to disable directory listing using .htaccess,
My .htaccess file has 
Options -Indexes, it is working fine on my local development server but not here, can you help me overcome this issue?

thank you.

index is visible.JPG

on local server.JPG

Posted

We usually just suggest putting a blank index.html file in the folder to hide the listings when this happens. The Options directive is...weird...on Plesk sometimes.

Also, I did notice that your website makes a distinction between /projects/ and /projects (without the trailing slash). I would suggest renaming the projects folder to something not used by the website to avoid visitors accidentally getting the wrong one.

  • Like 1

Join the conversation

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

Guest
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...