add redirect 301 in index page
This commit is contained in:
@@ -19,10 +19,16 @@ function index_kuri(){
|
|||||||
|
|
||||||
$checklogin = check_login_kuri();
|
$checklogin = check_login_kuri();
|
||||||
|
|
||||||
|
|
||||||
if ($checklogin['error'] == 'client not found'){
|
if ($checklogin['error'] == 'client not found'){
|
||||||
login_kuri();
|
$url = SITE.'login';
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
mybooks_kuri();
|
$url = SITE.'mybooks';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
header("HTTP/1.1 301 Moved Permanently");
|
||||||
|
header("Location: $url");
|
||||||
|
exit();
|
||||||
|
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user