A local search forwarder for Movable Type 6
In Movable Type, by default, if you execute a search you are directed to mt-search.cgi
in the Movable Type directory. For me, it redirects to http://cms.fortressofdoom.me/mt-search.cgi
, which is on a totally different domain to my blog. Unacceptable!
So, I made a PHP script that searches from the comfort of your own domain.
search.mtml
In my theme, I have made an Index Template that outputs to /search.php
.
In your templates, rather than using the <$mt:CGIPath$><$mt:SearchScript$>
for your search form, use /search.php
or equivalent. This script will forward any URL arguments provided, and return the results.
Tah-dah!