Root and Sub Directory Execution Problem

My core WordPress files are in a sub directory. When the site is run from there, everything works as designed. When I change the option – for WordPress home – to the root of my site, the block editor won’t save changes or publish and eventually present the JSON error. The classic editor works.

To run from the root (with a sub dir install), I add the subdir to the require statement in the index file at the root of the site.

/** Loads the WordPress Environment and Template */
require( dirname( __FILE__ ) . '/subdir/wp-blog-header.php' );

The page I need help with: [log in to see the link]

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer