# Root .htaccess for Samanta CRM
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /samanta_crm/

# Serve static files from public/assets and public/uploads
RewriteRule ^public/assets/(.*)$ - [L]
RewriteRule ^public/uploads/(.*)$ - [L]

# Don't rewrite existing files in public
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d

# Route everything to public/index.php
RewriteRule ^(.*)$ public/index.php [L,QSA]
</IfModule>
