[wp-hackers] OpenSearch RSS Autodiscovery for Searches - Kinda

Mark Jaquith mark.wordpress at txfx.net
Mon May 22 04:16:54 GMT 2006

On May 21, 2006, at 11:51 PM, Chris Pirillo wrote:

> This doesn't, and it should (according to .htaccess, TMK):
>  http://chris.pirillo.com/os-query?s=book
> One new line in the .htaccess (single line):
> RewriteRule ^os-query?(.*)$
> /opt/sp/pirillo.com/chris.pirillo.com/wp-content/plugins/opensearch/ 
> opensear
> ch.php?$1 [QSA,L]

This will need to exist ABOVE the WordPress rewrite block.  In fact,  
you might want to put a comment below the WP rewrite block:


The reason for this is that WP's rewrite rules act as a sort of  
"catchall."  Anything that hasn't matched a rewrite rule yet and  
points to a file that doesn't exist, gets sucked up by WordPress'  
rewrite rules.  So your rule wouldn't ever get matched down below it.

Mark Jaquith

More information about the wp-hackers mailing list