There is a site that consists of two folders:
publicapp(kernel / components / configs)
In the public folder is index.php (which connects the router) + .htaccess :
Options -Multiviews RewriteEngine On RewriteBase /public RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^(.+)$ index.php?uri=$1 [QSA,L] In app - .htaccess
Options -Indexes It is necessary to make all requests forwarded to the public .
How is it more correct and safer to configure the site, and is there any difference to configure in the configs of the site or through .htaccess ?
publicroot directory, then all requests will be processed through.htaccessin it, and theappfolder will not be visible from the outside, which will increase security. - Visman