How to write an htaccess call to handle an entire mapped domain on WordPress Multisite.
Warning: This post has a pretty high geek factor.
You’ve been warned.
Since Otto (@ottodestruct) fixed the wordpress permalink issue in WordPress 3.3, when I moved christopherprice.com to a different WP install, I decided to eliminate the /%year%/ portion of the permalinks he recommended previously.
Since it is very bad for SEO to have previously ranked pages just disappear and show up at different URLs, I needed to set up a 301 redirect (permanent) instruction for each old URL to each new URL. For example:
http://domain.com/2011/post/ should now redirect all visitors (including Google spiders) to http://domain.com/post/.