How can the document root be changed in web server behavior?
snippet in htaccess

How can the document root be changed in web server behavior?

user4478

<IfModule mod_rewrite.c>
    RewriteEngine on
    RewriteBase /
    RewriteCond %{REQUEST_URI} !^/public/
    RewriteRule ^(.*)$ /public/$1 [L]
</IfModule>