if (!$smartParts)
$smartParts[] = array("clear");
if (!$smartParts)
return str_replace("filter/#SMART_FILTER_PATH#/apply/", '', $url);
$x = $_SERVER['REQUEST_URI'];
if(strpos($x, '/filter/clear/apply/')!==false){
$filterClearUrl = str_replace("/filter/clear/apply/", "/", $x);
header("HTTP/1.1 301 Moved Permanently");
header("Location: ".$filterClearUrl, true, 301);
exit();
}