server.php 470 B

1234567891011121314151617
  1. <?php
  2. $uri = parse_url($_SERVER['REQUEST_URI'], PHP_URL_PATH);
  3. $uri = urldecode($uri);
  4. $requested = __DIR__.'/public'.$uri;
  5. // This file allows us to emulate Apache's "mod_rewrite" functionality from the
  6. // built-in PHP web server. This provides a convenient way to test a Laravel
  7. // application without having installed a "real" web server software here.
  8. if ($uri !== '/' and file_exists($requested))
  9. {
  10. return false;
  11. }
  12. require_once(__DIR__ . '/public/index.php');