1<IfModule mod_rewrite.c>
2 RewriteEngine On
3 RewriteCond %{HTTPS} !=on
4 RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
5 RewriteRule ^(.*)$ public/ [L]
6</IfModule>
1<Files .env>
2Order allow,deny
3Deny from all
4</Files>
5
6<Files composer.json>
7Order allow,deny
8Deny from all
9</Files>
10
11<IfModule mod_rewrite.c>
12<IfModule mod_negotiation.c>
13Options -MultiViews -Indexes
14</IfModule>
15
16<IfModule mod_rewrite.c>
17<IfModule mod_negotiation.c>
18Options -MultiViews -Indexes
19</IfModule>
20
21RewriteEngine On
22
23# Handle Authorization Header
24RewriteCond %{HTTP:Authorization} .
25RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
26
27# Redirect Trailing Slashes If Not A Folder...
28RewriteCond %{REQUEST_FILENAME} !-d
29RewriteCond %{REQUEST_URI} (.+)/$
30RewriteRule ^ %1 [L,R=301]
31
32# Send Requests To Front Controller...
33RewriteCond %{REQUEST_FILENAME} !-d
34RewriteCond %{REQUEST_FILENAME} !-f
35RewriteRule ^ index.php [L]
36</IfModule>
37
38
39<IfModule mod_rewrite.c>
40RewriteEngine On
41RewriteCond %{HTTPS} !=on
42RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
43RewriteRule ^(.*)$ public/ [L]
44</IfModule>