php slashRedirect(); $canonical = $settings['site_home_url'].'/longest-'.$settings['top_link_suffix'].'/'; $page = intval($urlparts['1']); if($page > 1){ $_page_title = $_lang['page'].' '.$page.' - '; $canonical = $settings['site_home_url'].'/longest-'.$settings['top_link_suffix'].'/'.$page.'/'; } //Переключить $page = intval($urlparts['1']); if($page > 1){ $_page_title = $_lang['page'].' '.$page.' - '; } if($urlparts['2'] != NULL){ header("HTTP/1.1 301 Moved Permanently"); header('Location: '.$settings['site_home_url'].'/longest-'.$settings['top_link_suffix'].'/'.$page.'/'); exit; }elseif($urlparts['1'] AND is_string_an_int($urlparts['1']) == FALSE){ header("HTTP/1.1 301 Moved Permanently"); header('Location: '.$settings['site_home_url'].'/longest-'.$settings['top_link_suffix'].'/'); exit; } ?>