# ─── Chandra & Sons Pharma ─── Root .htaccess for cPanel shared hosting ─── # This file sits at the domain root and redirects all traffic into /public RewriteEngine On # If the request is already inside /public, skip RewriteCond %{REQUEST_URI} !^/public/ # Allow direct access to existing files (e.g. in domain root) RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d # Route everything else through public/index.php RewriteRule ^(.*)$ public/$1 [L]