Answer the question
In order to leave comments, you need to log in
How to configure a single entry point on apache?
/public/.htaccess
AddDefaultCharset UTF-8
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} -s [OR]
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ index.php [PT,L]
</IfModule>
AddDefaultCharset UTF-8
<IfModule mod_rewrite.c>
RewriteEngine On
# RewriteCond ^$ public/ [L]
RewriteRule (.*) public/$1 [L]
</IfModule>
Answer the question
In order to leave comments, you need to log in
You need to configure the domain config in Apache itself, using the DocumentRoot
directive
/www/example.com/www/frontend/web/
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question