Flarum seems to know which page to load with the RewriteRule below:
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^ index.php [QSA,L]
For the index.php page (and all its requirements), what value is Flarum looking at in order to determine what page to load?
I ask because I'd like to create a substitution in the first line of the index page, something like: if($_SERVER['SCRIPT_URL'] == '/about') $_SERVER['SCRIPT_URL'] = '/p/2-about';
It doesn't appear that Flarum is using $_SERVER['SCRIPT_URL'], it's just an example. But basically there are cases where I'd like to be able to change which page loads up under certain circumstances.