Use h5ai to Beautify Apache Index

h5ai is code that beautifies Apache Index. So essentially, instead of just having the plain old Apache Index out-dated markup and styles that show in folder’s without an index page (and if you don’t have them blocked) like so:

Apache Index Default Rendering Screenshot
Screenshot of Apache Index Default Folder Rendering

h5ai makes it much more elegant, like so:

h5ai Beautified Apache Index Rendering Screenshot
Screenshot of h5ai Beautified Apache Index Folder Rendering

I really dig it, but I did have some issues because of how my .htaccess file was set up. I have mine set up to parse php as html and after installing h5ai, my folder index display was erroring. h5ai would compile, but not find any content in the folder(s) as well as spitting out a random string of characters after the closing /html element. After getting some help from @larrrs and @jrsmith I simply changed the default settings referring to header.html and footer.html. I simply renamed them as header and footer and deleted the .html extension from my .htaccess file.

Pretty crude solution, I know, but it did fix my problem. Further investigating also shed to light that parsing php as html actually increases server load, which I was clueless about. Obviously I need to fix that, but just putting the word out there should anyone come across any issue similar to mine.

Also read...

Leave a Reply

Your email address will not be published. Required fields are marked *

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