laravel/server.php

22 lines
563 B
PHP
Raw Normal View History

2015-01-19 21:58:01 -06:00
<?php
2015-01-19 21:58:01 -06:00
/**
* Laravel - A PHP Framework For Web Artisans
*
* @package Laravel
2016-08-16 00:13:51 -04:00
* @author Taylor Otwell <taylor@laravel.com>
2015-01-19 21:58:01 -06:00
*/
$uri = urldecode(
2015-02-22 20:47:03 -06:00
parse_url($_SERVER['REQUEST_URI'], PHP_URL_PATH)
2015-01-19 21:58:01 -06:00
);
// 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.
2015-06-15 22:22:23 +01:00
if ($uri !== '/' && file_exists(__DIR__.'/public'.$uri)) {
2015-02-22 20:47:03 -06:00
return false;
2015-01-19 21:58:01 -06:00
}
require_once __DIR__.'/public/index.php';