add redirect 301 in index page

This commit is contained in:
Andrey Kuvshinov
2020-05-15 16:59:02 +03:00
parent 8330d7ddea
commit 90d0e08e06

View File

@@ -19,10 +19,16 @@ function index_kuri(){
$checklogin = check_login_kuri();
if ($checklogin['error'] == 'client not found'){
login_kuri();
$url = SITE.'login';
}
else {
mybooks_kuri();
$url = SITE.'mybooks';
}
header("HTTP/1.1 301 Moved Permanently");
header("Location: $url");
exit();
}