This topic has been discussed in another recent thread:
[webmasterworld.com...]
Put this in your root .htaccess file. (This often works on 'nix servers running Apache but only if your web host admin allows it in their httpd.conf file.)
<FilesMatch "^search$">
ForceType application/x-httpd-cgi
</FilesMatch>
Then you need something like this in your cgi script which you call search.cgi. This reads URLs in the form [test.com...]
#!/usr/bin/perl
use CGI;
$q = new CGI;
$path = $q ->path_info();
#YOU MUST INSERT a regex test here to stop rogues sending dangerous characters into your script.
@path = split(/\//, $path);
#If you know @path always has three values in it you know that $path [2] is in this case cats and use that to match with a key in your database
Best wishes
Sid