File tree Expand file tree Collapse file tree 2 files changed +39
-0
lines changed Expand file tree Collapse file tree 2 files changed +39
-0
lines changed Original file line number Diff line number Diff line change
1
+ <IfModule mod_rewrite.c >
2
+ <IfModule mod_negotiation.c >
3
+ Options -MultiViews -Indexes
4
+ </IfModule >
5
+
6
+ RewriteEngine On
7
+
8
+ # Handle Authorization Header
9
+ RewriteCond %{HTTP:Authorization} .
10
+ RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization }]
11
+
12
+ RewriteCond %{REQUEST_FILENAME} -d [OR]
13
+ RewriteCond %{REQUEST_FILENAME} -f
14
+ RewriteRule ^ ^$1 [N]
15
+
16
+ RewriteCond %{REQUEST_URI} (\.\w+$) [NC]
17
+ RewriteRule ^(.*)$ public/$1
18
+
19
+ RewriteCond %{REQUEST_FILENAME} !-d
20
+ RewriteCond %{REQUEST_FILENAME} !-f
21
+ RewriteRule ^ index.php
22
+
23
+ </IfModule >
24
+
25
+
Original file line number Diff line number Diff line change
1
+ <?php
2
+
3
+ $ uri = urldecode (
4
+ parse_url ($ _SERVER ['REQUEST_URI ' ], PHP_URL_PATH )
5
+ );
6
+
7
+ // This file allows us to emulate Apache's "mod_rewrite" functionality from the
8
+ // built-in PHP web server. This provides a convenient way to test a Laravel
9
+ // application without having installed a "real" web server software here.
10
+ if ($ uri !== '/ ' && file_exists (__DIR__ . '/public ' . $ uri )) {
11
+ return false ;
12
+ }
13
+
14
+ require_once __DIR__ . '/public/index.php ' ;
You can’t perform that action at this time.
0 commit comments