I have a subdomain multisite and WP Empire Builder doesn't work there


WP Empire Builder only works with directory multisites. If you use a subdomain multisite, you can change it to a directory multisite.

Here's how to do that:

1. Open the wp-config.php file for editing. It will be at the root folder of the WordPress installation. For example, if you have installed WordPress on your-domain.com/blog - then you will find the wp-config.php file in the your-domain.com/blog/ folder.

Locate this line:

define( 'SUBDOMAIN_INSTALL', true );

and change it to this:

define( 'SUBDOMAIN_INSTALL', false);

Locate the line looking like the one below:

define('DB_NAME', '<your database name>');

Here "<your database name>" is a placeholder for the actual name. Write down the database name for later use.

2. Login to your WordPress site admin and install WP Empire Builder.

3. Your child sites will work as previously and you can now add new sites using either directory, subdomain or domain option. However, the "Sites" screen will not display Domain column for them and their admin dashboards will use subdomains instead of folders as it normally is with WP Empire Builder.

This is because site address settings were not updated. To fix this you have to update your database.

If you have cPanel at your host, follow the step below. If you can access you site's database using another tool, skip the instructions below and run the SQL query listed at step 4 using your tool.

Login to cPanel. Click phpMyAdmin. Open site's database, which name you recorded at step 1. Click SQL tab. Enter the query below and click Go.

4. Run this SQL query:

UPDATE wp_blogs SET
mapped_domain = domain,
path = CONCAT(path, SUBSTRING(domain, 1, LOCATE('.', domain)-1)),
domain = SUBSTRING(domain, LOCATE('.', domain)+1)
WHERE blog_id != 1

If your table prefix is not "wp_" (this is only possible if you changed it during WP installation) replace wp_blogs with actual table name.

5. Go back to you site admin. Now open each child site for editing and click Save.



Powered by Help Desk Software HESK, brought to you by SysAid