forked from cw1997/laravel-Simplified-Chinese
-
Notifications
You must be signed in to change notification settings - Fork 0
/
server.php
29 lines (24 loc) · 935 Bytes
/
server.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
<?php
/**
* Laravel - A PHP Framework For Web Artisans
*
* @package Laravel
* @author Taylor Otwell <[email protected]>
*/
/**
* translator:昌维 <[email protected]>
* repository:https://github.com/cw1997/laravel-Simplified-Chinese
* Translated at 2016-11-09 21:19:06
*/
$uri = urldecode(
parse_url($_SERVER['REQUEST_URI'], PHP_URL_PATH)
);
// This file allows us to emulate Apache's "mod_rewrite" functionality from the
// built-in PHP web server. This provides a convenient way to test a Laravel
// application without having installed a "real" web server software here.
// 这个文件让我们在PHP内置的WEB服务器中模仿Apache的mod_rewrite(URL重写模块)功能
// 这提供了一种方便的方法在没有安装真实WEB服务器软件的情况下来测试一个Larave应用
if ($uri !== '/' && file_exists(__DIR__.'/public'.$uri)) {
return false;
}
require_once __DIR__.'/public/index.php';