Last active
August 29, 2015 14:10
-
-
Save Big-Shark/ad3856b018f6c6e68993 to your computer and use it in GitHub Desktop.
server.php
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$uri = parse_url($_SERVER['REQUEST_URI'], PHP_URL_PATH); | |
$uri = urldecode($uri); | |
$requested = __DIR__.'/public'.$uri; | |
// 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)) | |
{ | |
return false; | |
} | |
require_once __DIR__. '/public/index.php'; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment