require_once(dirname(__FILE__)."/prolog_before.php");
require($_SERVER["DOCUMENT_ROOT"].BX_ROOT."/modules/main/include/prolog_after.php");
$url = $_SERVER['REQUEST_URI'];
$url = explode('?', $url);
$url = 'http://www.site.ru'.$url[0];
echo '<link rel="canonical" href="'.$url.'"/>';