$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();
}