steve, eventhough that contrib works flawlessly, it has one crucial limitation:
RewriteCond %{HTTP_USER_AGENT} !(msnbot|slurp|googlebot) [NC]
this implies that you need to add every spider known to mankind to this line, basically what you have been doing with spiders.txt.
so why not re-use spiders.txt for that as realized in chemo's php version of this:
if ( $spider_flag == true ){
if ( eregi(tep_session_name(), $_SERVER['REQUEST_URI']) ){
$location = tep_href_link(basename($_SERVER['SCRIPT_NAME']), tep_get_all_get_params(array(tep_session_name())), 'NONSSL', false);
header("HTTP/1.0 301 Moved Permanently");
header("Location: $location"); // redirect...bye bye
}
}
to be used in application_top.php after spider identification and in the event of seo url's after the inclusion of that class.