<IfModule mod_rewrite.c>
  Options -Multiviews
  RewriteEngine On

  # Set the base path dynamically if possible
  RewriteBase /settlematter/public

  # Prevent direct access to PHP files outside index.php
  RewriteCond %{REQUEST_URI} !^/index\.php$
  RewriteCond %{REQUEST_FILENAME} !-d
  RewriteCond %{REQUEST_FILENAME} !-f
  RewriteRule  ^(.+)$ index.php?url=$1 [QSA,L]


</IfModule>
