Apache directory sorting

Discussion in 'Web Design & Coding' started by SwordWielder, Feb 11, 2007.

  1. SwordWielder

    SwordWielder Master of Swords VIP Member

    Joined:
    Feb 8, 2003
    Messages:
    375
    Likes Received:
    2
    Location:
    California
    I have a directory of images and other files, I am having an issue displaying the full file name as apache is cutting the file name around 13 charactors, also I'd like to sort descending by name if at all possible.

    Right now I'm using Apache 1.3.37.
     
    SwordWielder, Feb 11, 2007
    #1
    1. Advertisements

  2. SwordWielder

    James Photojournalist

    Joined:
    Dec 24, 2002
    Messages:
    6,662
    Likes Received:
    35
    I ran into a similar issue not to long ago, the best reference is the Apache documentation: http://httpd.apache.org/docs/1.3/mod/mod_autoindex.html

    Here's an example of my .htaccess file:
    Code:
    IndexOrderDefault Descending Name
    IndexOptions FancyIndexing FoldersFirst NameWidth=*
    AddDescription "Apartment Photos" .jpg
    Note that NameWidth=*, this will allow you to display the full file name.
     
    James, Feb 11, 2007
    #2
    1. Advertisements

  3. SwordWielder

    SwordWielder Master of Swords VIP Member

    Joined:
    Feb 8, 2003
    Messages:
    375
    Likes Received:
    2
    Location:
    California
    Ah- Thank you for the help. I have implemented your suggestion and some others as well.
     
    SwordWielder, Feb 15, 2007
    #3
    1. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.