Options -MultiViews
RewriteEngine On
RewriteBase /lumiere/dashboard/

# Serve existing files/directories directly.
RewriteCond %{REQUEST_FILENAME} -f [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^ - [L]

# Clean child-page routes. The dashboard itself is the directory root (/lumiere/dashboard/).
RewriteRule ^roi/?$ roi.php [L,QSA]
RewriteRule ^leads/?$ leads.php [L,QSA]
RewriteRule ^patients/?$ patients.php [L,QSA]
RewriteRule ^users/?$ users.php [L,QSA]
RewriteRule ^data/?$ data.php [L,QSA]
RewriteRule ^logout/?$ logout.php [L,QSA]
