File tree Expand file tree Collapse file tree 1 file changed +13
-2
lines changed Expand file tree Collapse file tree 1 file changed +13
-2
lines changed Original file line number Diff line number Diff line change @@ -48,8 +48,19 @@ the rewrite rules.
4848.. tip ::
4949
5050 A performance improvement can be achieved by moving the rewrite rules from the ``.htaccess ``
51- file into the VirtualHost block of your Apache configuration and then changing
52- ``AllowOverride All `` to ``AllowOverride None `` in your VirtualHost block.
51+ file into the VirtualHost block of your Apache configuration (inside the ``public/ `` Directory block)
52+ and then changing ``AllowOverride All `` to ``AllowOverride None `` in your VirtualHost block.
53+
54+ .. code-block :: apache
55+
56+ <VirtualHost *:80>
57+ # ...
58+ DocumentRoot /var/www/project/public
59+ <Directory /var/www/project/public>
60+ AllowOverride None
61+ # Move .htaccess contents here
62+ </Directory>
63+ </VirtualHost>
5364
5465 Apache with mod_php/PHP-CGI
5566---------------------------
You can’t perform that action at this time.
0 commit comments