Multisite from subfolder to root
-
Hello,
I have problems to get my multisite network up and running from main url mysite.com. I configured network first to subfolder mysite.com/test and want to display it now under main domain. I found some instructions but still don`t get the site up.
1. in codex is instruction to change site url from admin – general settings, this option does not exist in my WP version, so I tried to do it in wp_config file and also in functions file (not in same time obviously) as explained here by adding to function file following code: update_option(‘siteurl’,’https://example.com’);
update_option(‘home’,’https://example.com’);
Then I copied index and htcaccess files under root directory and edited index file:
require( dirname( __FILE__ ) . ‘/wp-blog-header.php’ );
to the following, using your directory name for the WordPress core files:
require( dirname( __FILE__ ) . ‘/Test/wp-blog-header.php’ );
but when going to domain I keep getting an error “Error establishing a database connection”. What I miss ?
Thank you in advance for advice!
- The topic ‘Multisite from subfolder to root’ is closed to new replies.