Menü schliessen
Created: February 4th 2021
Last updated: February 4th 2021
Categories: IT Development,  Wordpress
Author: Marcus Fleuti

[SOLVED] Wordpress multisite to single theme

Donation Section: Background
Monero Badge: QR-Code
Monero Badge: Logo Icon Donate with Monero Badge: Logo Text
82uymVXLkvVbB4c4JpTd1tYm1yj1cKPKR2wqmw3XF8YXKTmY7JrTriP4pVwp2EJYBnCFdXhLq4zfFA6ic7VAWCFX5wfQbCC

Problem

When trying to migrate a WordPress multisite to singlesite you are most probably going to run into some problems.
After removing the unused second theme there was still a redirection to the theme but, .htaccess and database were fine.

Solution

In the wp-config there is an option which sets the page to multisite. You need to disable this option for sure:

define('WP_ALLOW_MULTISITE', true);

Mostly the above shown code line isn't helping us further with the redirection problem we've got. Please make sure you use the right path for your WordPress theme like shown below. Otherwise you are gonna get the redirect you don't want.

/** Absolute path to the WordPress directory. */
if ( ! defined( 'ABSPATH' ) ) {
    define( 'ABSPATH', __DIR__ . '/' );
}

/** Sets up WordPress vars and included files. */
require_once ABSPATH . 'wp-settings.php';