Could we help you? Please click the banners. We are young and desperately need the money
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.
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';