Jump to content

Want to remove "parent directory" from open file directory


Recommended Posts

Please excuse this lame question, but I am very unfamiliar with web development.

 

I am running a site with an apache server. I am allowing users to browse a directory from which they can download files, but a "parent directory" link exists in the main site. I want to remove said parent directory link, it doesn't do anything, I know it's just a pet peev of mine, but I find it really irritating.

 

What I have done so far is include IndexIgnore .?* in my htaccess file, and it does successfully remove that Parent Directory link, but regretfully, it affects all subdirectories (as I'm sure it should), I don't want it to affect those. To allow htaccess to affect only specific folders, I believe I'm  supposed to use AllowOverride, but my host has ceased allowing use of that function something about a security vulnerability.

 

I'm sure I'm not the first person to come across this, but I really find that useless link irritating. Any help would be appreciated.

 

Thanks, MR.

This thread is more than a year old. Please don't revive it unless you have something important to add.

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.   Restore formatting

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

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.