Просмотр поста

.
Джастин

Вот этот код ставь в индекс файл

<?php
if (isset($user_id)){
   
 header('Location:http://сайт.ru/index.php/');

} else {
    
 header('Location:http://sait.ru/login.php/');
}
?>