Created
August 1, 2016 23:41
-
-
Save Elsensee/5c191c11d2bbc83fc6eab4156114f118 to your computer and use it in GitHub Desktop.
Rewriting for phpBB as PHP router
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
<?php | |
$root = $_SERVER['DOCUMENT_ROOT']; | |
if (!file_exists($root . parse_url($_SERVER['REQUEST_URI'], PHP_URL_PATH)) && file_exists($root . '/app.php')) | |
{ | |
include($root . '/app.php'); | |
exit; | |
} | |
return false; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment