The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Default index formatting

Discussion in 'General Discussion' started by elemiah, Jan 7, 2003.

  1. elemiah

    elemiah Registered

    Joined:
    Jan 7, 2003
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    1
    I was wondering if I can format (i.e. colors and fonts and maybe even icons would be kool) the default display of contents within a directory on my Hosting Account when there is no index.* or default.* page in that same directory to 'resolve'.

    I am wanting to make the contents of the directory look nice - without displaying any index page and get rid of the stupid default blue and purple. Thanks;)
     
  2. ecoutez

    ecoutez Well-Known Member

    Joined:
    May 23, 2002
    Messages:
    152
    Likes Received:
    0
    Trophy Points:
    0
    use .htaccess

    You could put something like this in an .htaccess file and create a header and footer in HTML:

    Options +Indexes
    FancyIndexing on
    IndexIgnore header.html footer.html .. ~*
    IndexOptions ScanHTMLTitles
    IndexOptions NameWidth=*
    HeaderName header.html
    ReadmeName footer.html
     
Loading...

Share This Page