Add root .htaccess to route traffic into public directory
This commit is contained in:
10
.htaccess
Normal file
10
.htaccess
Normal file
@@ -0,0 +1,10 @@
|
|||||||
|
<IfModule mod_rewrite.c>
|
||||||
|
RewriteEngine On
|
||||||
|
|
||||||
|
# Redirect all requests to the public directory where the front controller lives
|
||||||
|
RewriteCond %{REQUEST_URI} !^/public/
|
||||||
|
RewriteRule ^(.*)$ public/$1 [L]
|
||||||
|
</IfModule>
|
||||||
|
|
||||||
|
# Ensure the public front controller is used as the default directory index
|
||||||
|
DirectoryIndex public/index.php
|
||||||
Reference in New Issue
Block a user