and here is the search.htm code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<?
// this page does a 4 step process:
// 1. see if string is a sku, then show product
// 2. see if string is a page, then show page from database
// 3. see if this is a category, then show search page results
// 4. show the error 404 page
include "../code/ipcheck.inc.php"; // only allow our ip address
$pagestarttime = microtime(); // begin the page timer
session_start(); // gentlemen, start your engines
header("Cache-control: private");
require_once("../code/config.inc.php"); // load up our configuration data
require_once("../code/functions.inc.php"); // load up our utilities and functions
//$_SESSION["brad"]=SID;
//echo SID;
// get the incoming variables from the .htaccess redirect string
$keyword1=$_GET["keyword1"];
$keyword2=$_GET["keyword2"];
$keyword3=$_GET["keyword3"];
$keyword4=$_GET["keyword4"];
// only interested in the last string value
if (!empty($keyword4))
{
$keyword=$keyword4;
}
elseif ......
i then react accordingly to what the keyword values are.