How to create a fancy Apache directory index listing with .htaccess

Sometimes you don’t need a CMS and want to keep things as simple as possible. For my use case I wanted sailing club race officers to be able to upload Sailwave race results and display them in the most simple way possible.

To achieve that and ensure isolation from the website’s WordPress CMS I added a subdomain and configured a pretty Apache directory listing. Users now just upload files via FTP.

Assuming your website is running on the Apache web server, you can achieve the same with .htaccess and few tweaks.

Screen Shot 2018-08-04 at 09.18.47

See above example here, see the code which you can easily alter to suit on github.

More about this the Apache docs:

https://httpd.apache.org/docs/2.4/mod/mod_autoindex.html

https://httpd.apache.org/docs/trunk/howto/htaccess.html

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s