MovableType multiple domain search redux
A while ago (yikes, over a year!), I posted a hack to get MovableType to be able to use multiple URLs for search forms. Why would you want to do such a sick thing? Well if you host multiple sites, it’s tacky to use the same domain for all the searching. It has been proven that only .0168% of people notice URLs these days, but I’m a total URL-ist and need ’em pretty.
The problem with my previous hack was that you need to mess with the CGI files. This is just not fun, and every time you upgrade your installation you have to worry.
My new hack uses PHP, but seems to work fast. There’s technically a little more work (the server fetches the CGI results), but unless you’re powering Google it probably won’t be much to notice. It also works a bit smarter and changes the default search form that appears on the results page to reflect your new URL and change it to a GET query.