WordPress Muti-Domain Update

If you have parked domains, a simple mod to the wp-config.php file can make everything work.

You can find a few plugins to do this, but it really isn’t necessary .

You can simply add a couple of lines of code to the top of your wp-config.php file.

define( 'WP_SITEURL','http://'.$_SERVER['SERVER_NAME'].'/wp' );
define( 'WP_HOME','http://'.$_SERVER['SERVER_NAME'] );

Then – to make sure your links work, set the Permalinks to Custom:


Press Save to save the new permalink structure, and everything should work great.

I have no problems with plugins, this mod works with most plugins without any modification.