So why not start here with a few things I discovered whilst getting this site going. This is my first time doing anything properly with Wordpress and it gets the big thumbs up from me, speedy deployment, fairly easy to fiddle with and loads of plugins to play with.
Anyway, I managed to get hold of both www.actionscriptfreelancer.com and www.actionscriptdeveloper.co.uk which I’m hoping will push up my ratings in search engines for these keywords, so the first problem was getting two domains to point to a single Wordpress installation. This turned out to be easily accomplished using the Domain Mirror plugin and changing the tagline slightly in each site should prevent Google penalizing them as duplicates (I hope). Then it was time for some Google Analytics provided courtesy of the Ultimate Google Analytics plugin.
However I hit a slight problem here as UGA only allows a single GA account id to be entered, but GA provides two seperate ids for the .com and .co.uk address. Time for a bit of PHP coding; I updated the Domain Mirror plugin so that you can also enter a GA account id for each domain, and then updated the Ultimate Google Analytics plugin so that it uses the account id for the current domain. Note that in order to get these two to work you’ll need to add a column to the wp_options table called googleid.
Download the two plugins as a zip here!







I wrote a very similar plugin to Domain Mirror call Domain Theme. It has the benefit of allowing you to select a different theme based on the visiting domain name. This can be usefull for users that want to manage content and represent it in a different way to cater to a specific user. IMHO, this alters the content and shouldn’t be subject to the ‘duplicate content’ argument. You can also specify different titles and taglines as well. Because theme templates can be so powerfull, it can be used to allow you to use a theme that omits content for one domain name and/or enhances it for another. (i.e. mobile version, where browser sniffing often fails, ‘g-rated’, larger font for seniors, etc.) Hope this helps!
http://wordpress.org/extend/plugins/domain-theme/
Dave,
Would you consider blogging in a bit more detail about how you went about adding an extra tag to the Domain Mirror plugin?
Would you consider creating a “hat-trick” combination of the altered Domain Mirror and UGA plugins you provide above, and your more recent Sitemaps Mirror? Or should they work fine together anyway?
Also, was there any specific reason why you chose UGA rather the more popular Google Analyticator plugin? One confusing thing is that the Analyticator plugin doesn’t show up when you search the word “analytics” in WordPress plugins website, but it is the highest rated one when you search down through all the plugins listed by popularity. I have no idea which one might actually be better.
Thanks for the work you’ve done on this, the holy grail for me right now is to find a way to add completely customizable tags to Domain Mirror because I believe that this will allow one installation of regular WordPress to do what so many people have been misguidedly trying to do with WordPress MU.
Donnacha
As David McAleavy has updated the Domain Mirror plugin to v1.2b since I wrote this (and apparently changed quite a few things) I don’t think there’s too much point describing the process in detail. However, basically you open up plugins/AA-Domain-Mirror/WP-DomainMirror.php and everywhere you see a bit of code relating to (for example) siteurl, just duplicate it replacing it with your new tag. e.g. googleid. Then add a column to the options database table called googleid and you are good to go.
These two plugins were developed alongside the sitemaps mirror, so if you download the whole bunch and install them every should work fine.
I basically used UGA because I found some comments from people who liked it - I’d never even heard of the Google Analyticator plugin
I’m basically a Wordpress novice with good PHP skills so it may well be that there are other and easier ways to accomplish these tasks.
Hope that helps!
Dave
Dave, yeah, that helps a lot, I’ll have a good poke around inside those files and see just how far I can take it, I have pretty big plans for this.
I’m in Edinburgh too, so, I owe you a pint sometime. Interestingly, I think Dave McAleavy is based in Glasgow; the central belt is obviously a hot-bed of WordPress development.
Thanks again,
Donnacha
Excellent plugin, BUT
It’s uncomfortable to add more than 1 domain mirror. Because you should refresh you site each time when you want to add a mirror.
How can I have more than one adding form?
Thank you, Alexey.