<?php
include 'includes/func.php';
if(!empty($_GET['q']))
{
$url='youtube/videos/q-'.preg_replace("/[^A-Za-z,А-Яа-я,0-9[:space:]]/","$1",strtolower($_GET['q'])).'';
$url= str_replace(' ','-',$url);
}
else
{
$url='/youtube.php';
}
header('location:'.$url.'');
?>