htaccess points Laravel project to publicindex.php
DirectoryIndex /public/index.php RewriteEngine On RewriteCond %{REQUEST_FILENAME} -f RewriteRule ^(.+) $1 [L] RewriteCond %{DOCUMENT_ROOT}/public%{REQUEST_URI} -f RewriteRule ^(.+) /public/$1 [L] Options +SymLinksIfOwnerMatch RewriteRule ^(.*)$ /public/ [QSA,L]
Second example:
<IfModule mod_rewrite.c> RewriteEngine On RewriteCond %{REQUEST_URI} !^public RewriteRule ^(.*)$ public/$1 [L] </IfModule>
Similar Posts:
- Install Drupal 8 via composer
- Laravel site template for VestaCP
- how to import users to laravel 9 from csv file
- How to install phpMyAdmin with nginx on Debian 11
- how to install composer latest version
2,057