if ($_SERVER['REQUEST_URI'] == '/') {
$title = 'Главная';
include_once 'pages/index.php';
}
if ($_SERVER['REQUEST_URI'] == '/about') {
$title = 'О нас';
include_once 'pages/about.php';
}
if ($_SERVER['REQUEST_URI'] == '/news') {
$title = 'Блог';
include_once 'pages/news.php';
}