RewriteEngine On # RewriteBase /KIIT-KAFE/ (Removed hardcoded base path for system portability) # If the request is for a real file or directory, serve it directly RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d # Otherwise, send everything to index.php RewriteRule ^(.*)$ index.php [QSA,L]