8 lines
232 B
PHP
8 lines
232 B
PHP
<?php
|
|
$path = parse_url($_SERVER['REQUEST_URI'], PHP_URL_PATH);
|
|
$file = __DIR__ . '/wordpress' . $path;
|
|
if ($path !== '/' && file_exists($file) && !is_dir($file)) {
|
|
return false;
|
|
}
|
|
require_once __DIR__ . '/wordpress/index.php';
|