# SHC Patient — runs at /shc-patient/ on cPanel (Apache)
DirectoryIndex index.html
Options -MultiViews
RewriteEngine On
RewriteBase /shc-patient/

RewriteCond %{REQUEST_FILENAME} -f [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^ - [L]

RewriteCond %{REQUEST_URI} !/$
RewriteCond %{REQUEST_FILENAME}/index.html -f
RewriteRule ^(.*)$ $1/ [R=301,L]

RewriteRule ^ index.html [L]
