2 WordPress install with same database

Do not alter any table names. In both sites (just to be sure) in wp-config.php set the WP_SITEURL and WP_HOMEURL to the related domain so these constants should be http://wow7.ro on the main domain install and http://lol.wow7.ro on the subdomain install. See Codex. Note that it doesn’t work for links insrted inside post or page … Read more

Forward and mask a WordPress website

There are two aspects to site’s URL in WP (baseline case, multisite aside): Which URL it considers “real”, responds to, and uses to generate links. URLs previously generated and persistently stored in content. Former is pretty malleable and as you discovered already is simply a matter of configuration. More so it’s technically easy (and practically … Read more

Change WordPress Multisite Domain

When I move domains and have to change the domain in the database, I use interconnectit’s Search and Replace tool. Here is a very brief overview of the process. Export the database and upload it to the new server. Upload interconnectit’s Search and Replace tool to the new server. Configure what I want to be … Read more

Check if current site ID and value exist in WPDB

Note that you should be able to map domains without 3rd party plugins. Here’s an untested suggestion for your callback in your current situation: global $wpdb; // Nothing to do if not multisite if( ! is_multisite() ) return; // Define the custom table $wpdb->dmtable = $wpdb->base_prefix . ‘domain_mapping’; // Check if the custom table exists … Read more