Skip to content

Commit 01651aa

Browse files
committed
new folder added
1 parent ce865b6 commit 01651aa

File tree

2 files changed

+39
-0
lines changed

2 files changed

+39
-0
lines changed

using index.php/.htaccess

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
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+

using index.php/index.php

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
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';

0 commit comments

Comments
 (0)