Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

Default index formatting

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

  1. elemiah

    elemiah Registered

    Jan 7, 2003
    Likes Received:
    Trophy Points:
    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

    May 23, 2002
    Likes Received:
    Trophy Points:
    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
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice