Jump to content

AddIcon subtlety


effigy

Recommended Posts

I am using mod_autoindex on a directory which contains a subdirectory called "Happy_Hardcore" (a style of music). The bomb image is shown instead of the folder image because "core" partially matches the directory name. I tried moving this rule below the folder definition, but this had no effect, so the defaults still stand, as below:

AddIcon /icons/bomb.gif core

AddIcon /icons/folder.gif ^^DIRECTORY^^

The documentation states that...

 

Name is either ^^DIRECTORY^^ for directories, ^^BLANKICON^^ for blank lines (to format the list correctly), a file extension, a wildcard expression, a partial filename or a complete filename.

 

...which doesn't help me. From what I can tell, there's no syntax to distinguish a partial filename from a complete filename, and no regular expression anchors are available.

 

Has any one come across something like this before, and if so, what was your best solution? I'm still analyzing...

 

Thanks.

Link to comment
https://forums.phpfreaks.com/topic/67994-addicon-subtlety/
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.