server.php 548 B

12345678910111213141516171819
  1. <?php
  2. /**
  3. * Laravel - A PHP Framework For Web Artisans.
  4. *
  5. * @author Taylor Otwell <taylor@laravel.com>
  6. */
  7. $uri = urldecode(
  8. parse_url($_SERVER['REQUEST_URI'], PHP_URL_PATH)
  9. );
  10. // This file allows us to emulate Apache's "mod_rewrite" functionality from the
  11. // built-in PHP web server. This provides a convenient way to test a Laravel
  12. // application without having installed a "real" web server software here.
  13. if ($uri !== '/' && file_exists(__DIR__ . '/public' . $uri)) {
  14. return false;
  15. }
  16. require_once __DIR__ . '/public/index.php';