DirectoryIndex index.html index.php

<IfModule mod_rewrite.c>
    RewriteEngine On

    # 1. Strip index.html from browser URL (Redirect to root or directory)
    RewriteCond %{THE_REQUEST} ^[A-Z]{3,}\s(.*)/index\.html [NC]
    RewriteRule ^ %1/ [R=301,L]

    # 2. Pretty URL for visitors dashboard
    RewriteRule ^visitors/?$ visitors/index.php [L,QSA]
</IfModule>
