How to Add Style to Index Page

helper|cpanel website hosting Question about cpanel website hosting:

“If I upload folders, with folders in those folders, onto my website (and I do not use an index page) then the server lets me browse right through all of them by making it’s own index page that lists the folders – and then when I click a folder it makes an index page for that folder, and lists all the folders inside of that folder, and then etc etc – until I finally reach the farthest folder – Well that is very very convenient for me – but can I add just a little style to those automatically created index pages? I don’t even know what to call them?”

Answer:

Use “IndexStyleSheet directive” to automatically index your created page. Apache 2.2 web server is required to get this working but most web hosting is already using Apache 2.2 including Hostgator.hostgator|cpanel website hostingIf you need a cheap web host for your website, , you can always count onHostgator. Their shared plan comes with unlimited bandwidth, no limit on web storage, unlimited domain hosting, easy Site Builder, FTP access and much more for almost free.

Hostgator Special Discounts

Hostgatorlets us display a special coupon to our visitors. Check out the Hostgator coupon 2012 below. Test drive the quality of service by HG with the 1 Cent Coupon below.

The promotion above will last until HG when wants it off this page so hurry before it is too late.

One Response to “How to Add Style to Index Page”

  • Description:Adds a CSS stylesheet to the directory index
    Syntax:IndexStyleSheet url-path
    Context:server config, virtual host, directory, .htaccess
    Override:Indexes
    Status:Base
    Module:mod_autoindex

    The IndexStyleSheet directive sets the name of the file that will be used as the CSS for the index listing.
    Example

    IndexStyleSheet "/css/style.css"

    In other words add the following line to your .htacess file:
    IndexStyleSheet "/css/style.css"
    Then create style.css and add entires to style as desired.







XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>