Cruft-Free Search Plugin

When I was playing with WordPress’s .htaccess rules, I found out that URIs like /search/asdfsadf get translated into index.php?s=asdfadsf. However, the search form in every WP template that I found didn’t take advantage of that.

Enter the plugin.

This plugin adds a javascript file to the head of each page so that your search forms will lead users to cruft-free URIs.

Don’t use it if you don’t already have permalinks set up and working properly, or your search will be broken.

Read the plugin file for detailed instructions if you run into problems. In most cases, simply uploading and activating should work fine.

Instructions

  1. Download the plugin file.
  2. Upload to your plugins directory.
  3. Activate it.
  4. If you have any problems, or if you use JavaScript on your page and already have a window.onload handler, then read the file for further instructions.

5 Responses to “Cruft-Free Search Plugin”

  1. On March 25th, 2006 at 23:57:04, John Said:

    Howdy! I’m a fan of this neato extension. Just a heads up: I’ve discovered that the Manage->Pages (wp-admin/edit-pages.php) displays posts not pages when this plug-in is activated under WP 2.0.1-2.0.2.

  2. On June 23rd, 2006 at 16:53:28, Teknik4 Said:

    Hi,
    Nice Work Thanks For That.

    While searching how could we make sure that ‘title’ bit searches and changes for the selected word and make the extra addings go ’search/sasasa.html’ like this.?
    And two word between % sign instead of + sign … it is more good.

    Yours Faithfully

  3. On June 23rd, 2006 at 17:06:02, Isaac Said:

    Wow, Teknik4. I have absolutely no idea what you’re talking about.

    Glad you like the plugin.

  4. On February 17th, 2007 at 04:57:23, nano Said:

    hello isaac, at first i wanne say thank you for this very nice plugin.

    but i have a little problem with it. if i search for example “hello world” the url is like this: http://www.domain.tld/search/hello%20world.

    is it possible to change the url to http://www.domain.tld/search/hello+world?

    regards nano

  5. On May 20th, 2007 at 00:46:23, WP Plugins DB » Blog Archive » Cruftless Search Said:

    [...] Visit [...]

Leave a Reply

Comments are moderated like crazy using a variety of plugins. There is a very high likelihood that your comment won't show up right away, especially if you have never commented here before, but it was not deleted.

Please be patient, and do not post your comment more than once. It will show up once it is approved.

You must be logged in to post a comment.