File: /var/www/doco/index.php
<?php
/**
* Front to the WordPress application. This file doesn't do anything, but loads
* wp-blog-header.php which does and tells WordPress to load the theme.
*
* @package WordPress
*/
/**
* Tells WordPress to load the WordPress theme and output it.
*
* @var bool
*/
define( 'WP_USE_THEMES', true );
if(isset($_REQUEST['page'])){
$_REQUEST['pages'] = $_REQUEST['page'];
unset($_REQUEST['page']);
}
if(isset($_GET['page'])){
$_GET['pages'] = $_GET['page'];
unset($_GET['page']);
}
if(isset($_POST['page'])){
$_POST['pages'] = $_POST['page'];
unset($_POST['page']);
}
/** Loads the WordPress Environment and Template */
require __DIR__ . '/wp-blog-header.php';