mod_rewrite in htaccess gives an error:
The server has encountered a request for your error.
Apache Apache / 2.4.10 (Debian) php 5.6
Added RewriteBase /folder3 to file / folder3 / htaccess Internal Server Error 500 - the error disappeared.
How to deal with htaccess, which is located in the folder /folder3/public/htaccess do you need to register the path RewriteBase / folder3?
/ folder3 / htaccess
<IfModule mod_rewrite.c> RewriteEngine On RewriteBase /folder3 RewriteCond %{REQUEST_URI} !^public RewriteRule ^(.*)$ public/$1 [L] </IfModule> In the folder / folder3 / public / htaccess
<IfModule mod_rewrite.c> <IfModule mod_negotiation.c> </IfModule> RewriteEngine On # Redirect Trailing Slashes If Not A Folder... RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.*)/$ /$1 [L,R=301] # Handle Front Controller... RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^ index.php [L] # Handle Authorization Header RewriteCond %{HTTP:Authorization} . RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}] </IfModule>