11 lines
332 B
ApacheConf
11 lines
332 B
ApacheConf
<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
|