Options -MultiViews RewriteEngine On # Ensure the request is not for a directory or file RewriteCond %{REQUEST_FILENAME} -d [OR] RewriteCond %{REQUEST_FILENAME} -f RewriteRule ^ - [L] # If the request is for a file with an extension, do not rewrite (ensure static files are not affected) RewriteCond %{REQUEST_URI} \.(css|js|png|jpg|jpeg|gif|ico|svg|woff|woff2|ttf|eot|otf)$ [NC] RewriteRule ^ - [L] # Rewrite all other requests to public directory RewriteRule ^(.*)$ public/$1 [L] # Rewrite all other requests to server.php RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^ server.php [L] # php -- BEGIN cPanel-generated handler, do not edit # Set the “ea-php74” package as the default “PHP” programming language. AddHandler application/x-httpd-ea-php74 .php .php7 .phtml # php -- END cPanel-generated handler, do not edit