I have a wordpress site that's approximately 25% "business" pages and 75% "techie" pages. The current site: mysite.com, I'm splitting into two separate domains: mysite.com for the business stuff and tech.mysite.com for the tech stuff.
I'm looking for recommendations on how to best go about rewriting all the existing "techie" URLs to point to the new "tech.mysite.com" domain instead of their current "mysite.com". I wouldn't be changing anything except putting the tech subdomain at the front.
Options, as far as I'm aware:
Rewriting via htaccess I'd prefer not to do this, mostly because of the number of pages (~50) and don't want the upfront overhead of having to check all the rewrite rules here before anything else is done. Maybe I'm over-concerned.
Some Wordpress Plugin Not a fan of this option either: I don't trust pick your plugin to be able to get it right, without a performance hit.
PHP code I'm thinking this is probably the way to go... if the original page is gone, it'd redirect to the error page, at which point I can put in a global hook that would check for the original request URL and redirect to the new one accordingly. This seems good because a) I can have a central place to manage all cases (including upcoming/future cases), and b) the overhead of matching URLs isn't invoked until an original page is **not* found.
Has anyone done this before, and can offer some pointers on the best way to go about it?