From 94d971c5a51e02a0186ce439470c2f0b264fcd98 Mon Sep 17 00:00:00 2001 From: NemoD503 <1historicus@gmail.com> Date: Thu, 26 Feb 2015 00:34:37 +0400 Subject: [PATCH] Server for L5 --- server.php | 23 +++++++++++------------ 1 file changed, 11 insertions(+), 12 deletions(-) diff --git a/server.php b/server.php index ddc21fba7..7df7b455c 100644 --- a/server.php +++ b/server.php @@ -1,19 +1,18 @@ + */ +$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. -if ($uri !== '/' and file_exists($requested)) +if ($uri !== '/' and file_exists(__DIR__.'/'.$uri)) { return false; } - -require_once $paths['public'].'/index.php'; \ No newline at end of file +require_once __DIR__.'/index.php';