add redirect 301 in index page
This commit is contained in:
@@ -18,11 +18,17 @@ _kuri();
|
||||
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();
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user