Jump to content

[SOLVED] .htaccess


Recommended Posts

Use

IndexIgnore +yourfile.ext

change yourfile.ext the actual file you want to hide from the directory listing.

 

Or If you have a bunch of files you want to hide but has the same file extension then use

IndexIgnore +*.ext

 

IndexIgnore Manual

 

Ohh, thanks ;)

 

 

One more thing..!

 

 

Can I make my .htaccess like this:

 

Options +Indexes
IndexIgnore +file.exe
IndexIgnore +test.html
IndexIgnore +log.txt
IndexIgnore +*.php

?

Link to comment
https://forums.phpfreaks.com/topic/109336-solved-htaccess/#findComment-561397
Share on other sites

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.