$url = ((!empty($_SERVER['HTTPS'])) ? 'https' : 'http') . '://' . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI'];
if (!preg_match('/^https:\/\/site.ru\/([.0-9]+)-([a-z]+)-([a-z]+)/i', $url, $url_params)) {
die('Wrong url');
}
print $one_id = (int)$url_params['1'];
print $two_id = (string)$url_params['2'];
print $two2_id = (string)$url_params['3'];