php的2种域名转向写法

第一种

echo '<meta http-equiv="Refresh" content="0;url=' .  $url . '">' ;

 

第二种

header("Location:".$url);

  

原文地址:https://www.cnblogs.com/cblx/p/8962789.html