Skip to content

Instantly share code, notes, and snippets.

@Elsensee
Created August 1, 2016 23:41
Show Gist options
  • Save Elsensee/5c191c11d2bbc83fc6eab4156114f118 to your computer and use it in GitHub Desktop.
Save Elsensee/5c191c11d2bbc83fc6eab4156114f118 to your computer and use it in GitHub Desktop.
Rewriting for phpBB as PHP router
<?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