Non-WP homepage for multisite
-
If I wanted my domain root-installed multisite setup to have a completely non-WP driven homepage (e.g., “hello world”), but retain all the other site #1 functionality (and not mess anything up on subsites either), will the following cause any problems down the line as my root index.php code?
if ($_SERVER['REQUEST_URI'] != '/') { /** * Tells WordPress to load the WordPress theme and output it. * * @var bool */ define('WP_USE_THEMES', true); /** Loads the WordPress Environment and Template */ require('./wp-blog-header.php'); } else { echo "hello world"; };
Viewing 10 replies - 1 through 10 (of 10 total)
Viewing 10 replies - 1 through 10 (of 10 total)
- The topic ‘Non-WP homepage for multisite’ is closed to new replies.