I haven't been using WB long but i've already made a few modifications to my sites WB.
One i've made is to redirect 404 errors (page not found) to the wb search using the name of the file not found as the search term.
For this you need to have mod_rewrite enabled on your server. (google for more info)
1. Add to your .htaccess file (see here for info on .htaccess
http://www.javascriptkit.com/howto/htaccess.shtml)
RewriteEngine on
#404 redirects
RewriteCond %{REQUEST_FILENAME} !-f
#RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ([^/\.]+).php$ /search/index.php?string=$1&match=any&error=404 [L]
2. In search/search.php after
$string = preg_replace("/(^|\s+)([-=+_&!;#]|\\\\\"|\\\\')+(?=\s+|$)/", " ", $string); on a new line add:
$string = str_replace("-", " ", $string );
3. In search/search.php after
// Show search header (aprox line 154) but before
echo $search_header; on a new line add:
$error = 'none';
if(isset($_REQUEST['error'])){
$error = $_REQUEST['error'];
}
if($error == '404'){
echo '404 Error. The page you entered was not found. <br>Please check the search results below to locate the page you are looking for.';
}
OK what does this do? Well:
1: This checks to see if the requested page or dir exists if not then it goes to the search page using the name of the file or dir minus the .php as the search term in an any word search and adds &error=404 onto the address
2: Because the default page seperator is '-' and if you have pages named a-page.php then the it will search for 'a-page' which probably wont return anything. This replaces the '-' with a ' ' so you search for 'a page'
3: As you can see in 1 i've added a &error=404 to the address in the .htaccess file. This bit checks the address for an error code and if the error code = 404 then it adds a message to the top of the search page.
So for example: A user types the address
http://www.mysite.com/blue-flamingo.php but the page dosn't exist so the user is redirected to a search page of any of the words blue flamingo. Because your site has a page named pink flamingo it shows up in the search results..
As far as i can tell it dos'nt affect the normal search or any thing else.