Header("HTTP/1.1 301 Moved Permanently");
Header("Location: https://www.sowenda.com");
?>
实例应用完整跳转代码:
<?php
$the_host = $_SERVER['HTTP_HOST'];
$request_uri = isset($_SERVER['REQUEST_URI']) ? $_SERVER['REQUEST_URI'] : '';
if($the_host == 'sowenda.com')
{
header('HTTP/1.1 301 Moved Permanently');
header('Location: https://www.sowenda.com'.$request_uri);
}
?>
本文来自投稿,不代表本站立场,如若转载,请注明出处:https://www.sowenda.com/387.html
发表评论