WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

This question was asked back in 2010 @

Outputting Canonical Resource URLs Across a Multisite Network?

WordPress MU Domain Mapping @ Wordpress.org

Since many things have changed since then, I was wondering what would be the best method to do this now. Would it be easier/better to just use .htaccess rules or in a varnish VCL?

I want to normalize plugin/theme files accross all of the sites on the network without using any host file hacks and works with the domain mapping plugin. I am using the subdirectory install and also a CDN. Thank you for any help/examples. This is my first post, but long time lurker ;)

P.S. If themes/plugins would need to be manually edited, would it be easier to create a plugin with all of the rules that can be network activated?

share|improve this question
+1 for doing with .htaccess, Nginx rewrites, Varnish VCL or whatever the tool you have in the server-side. I don't know, if it is possible with a plugin, but I'm sure it can be done on the server end. – Pothi Sep 18 '12 at 9:09
I'm thinking it may work out better to keep it away from the webserver and push it up to the next level to minimize problems. I'm playing with Varnish VCL and mod_pagespeed, but still have not worked out a solution that works for all themes/plugins yet. There are a lot of factors in play, and they don't always play nice – Dustin Salmons Aug 17 '13 at 12:58

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.