forked from Azuriom/Azuriom
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Support installation in subdirectory with Apache
- Loading branch information
1 parent
15e477b
commit 1f9238b
Showing
2 changed files
with
23 additions
and
3 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
<?php | ||
|
||
/** | ||
* Laravel - A PHP Framework For Web Artisans. | ||
* | ||
* @author Taylor Otwell <[email protected]> | ||
*/ | ||
$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 !== '/' && file_exists(__DIR__.'/public'.$uri)) { | ||
return false; | ||
} | ||
|
||
require_once __DIR__.'/index.php'; |