cancel
Showing results for 
Search instead for 
Did you mean: 

Index listing on website

Oldjim
Community Veteran
Posts: 38,460
Thanks: 1,035
Fixes: 62
Registered: ‎15-06-2007

Index listing on website

I just noticed that when going to a folder on my Plusnet website (using standard http) that the files, which are in alphabetical order, show those with upper case first letters before those with lower case first letters
To explain - this is what it looks like
Apple
Banana
Orange
Pear
apple
banana
orange
pear
Is this a quirk of the Plusnet hosting system or normal
4 REPLIES 4
bobpullen
Community Gaffer
Community Gaffer
Posts: 14,884
Thanks: 2,489
Fixes: 168
Registered: ‎04-04-2007

Re: Index listing on website

I think that's the default behaviour for Apache Jim. Done a spot of googling to see if there's any way to override/change it using an Apache directive but I've not been able to find anything. Somebody else whose better versed in this sort of stuff might be able to advise further though?
Edit: Looks like IgnoreCase would do the trick, however I've just tried it and I don't think it's allowed on our servers as it returns a 5xx HTTP response Sad

Bob Pullen
Plusnet Product Team
If I've been helpful then please give thanks ⤵

fourfourdevon
Community Veteran
Posts: 1,101
Thanks: 2
Registered: ‎10-09-2010

Re: Index listing on website

I think this http://httpd.apache.org/docs/2.0/mod/mod_autoindex.html#indexorderdefault and Fancy indexing are what you want.
bobpullen
Community Gaffer
Community Gaffer
Posts: 14,884
Thanks: 2,489
Fixes: 168
Registered: ‎04-04-2007

Re: Index listing on website

Quote from: Bob
Looks like IgnoreCase would do the trick, however I've just tried it and I don't think it's allowed on our servers as it returns a 5xx HTTP response Sad

Brain fart moment, I was doing it wrong! Roll_eyes
IndexOptions +IgnoreCase

Add that to your .htaccess file and it should result in the desired effect.

Bob Pullen
Plusnet Product Team
If I've been helpful then please give thanks ⤵

Oldjim
Community Veteran
Posts: 38,460
Thanks: 1,035
Fixes: 62
Registered: ‎15-06-2007

Re: Index listing on website

Thanks Bob,
I wasn't too bothered - just curious.
I may decide to create an htaccess file if it really bothers me in the future
Although adding that would get round the problem where I use an upper case letter when I meant to use lower case