Jump to content

Want to remove "parent directory" from open file directory


MR

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.

Archived

This topic is now archived and is closed to further replies.

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