This plugin hasn’t been tested with the latest 3 major releases of WordPress. It may no longer be maintained or supported and may have compatibility issues when used with more recent versions of WordPress.

Domain Mirror


If you have more than one domain and want to point both of them at the same WordPress installation, you’ll find that it doesn’t really work very well. WordPress creates its own internal URLs based on the settings in General Options. This Plugin allows multiple domains to be configured within WordPress and updates the Weblog Title, WordPress Address URL and Blog Address URL on-the-fly based on the value of $_SERVER[‘SERVER_NAME’]

This allows one installation to show different URL paths and a different blog title for each domain.

v1.1 changes: Now allows a different Tagline for each domain.


Copyright 2007 David McAleavy

This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA


  • Admin Area


  1. Download and unpack the archive. If you downloaded the plugin from my site it will unpack to a directory named “AA-DomainMirror”, but if you got it from the WordPress plugin repository it will probably unpack to the direcotory “domain-mirror”. Either will work, but you may need to rename the latter to “AA-DomainMirror” if you have problems with some other plugins not seeing the changes. See below.

  2. Copy the whole AA-DomainMirror directory to wp-content/plugins/ If possible, don’t change the name of the directory, as the AA- at the start is a horrible hack to ensure that WordPress loads this plugin first. This is required as any plugin loaded before it won’t be able to see the changes it makes, so will behave as if it’s still on the default domain. This puzzled me for quite a while.

  3. Go to your Plugins page and activate Domain Mirror.

  4. Go to the Options -> Domain Mirror page and configure.

  5. For more detailed configuration details see:


The following tags can be used in pages and posts:

[dmBlogTitle] – Inserts the current Weblog Title.

[dmWpAddr] – Inserts the current WordPress Address URL.

[dmBlogAddr] – Inserts the current Blog Address URL.

Contributors & Developers

“Domain Mirror” is open source software. The following people have contributed to this plugin.


Translate “Domain Mirror” into your language.

Interested in development?

Browse the code, check out the SVN repository, or subscribe to the development log by RSS.