<?php function go_url($url) { header('HTTP/1.1 301 Moved Permanently'); exit(header('location:'.$url)); } //通过get函数获取id $id = $_GET['id']; if($id == art){ $url = "https://www.1004619.com/"; }else if($id == Crafts){ $url = "https://www.1004619.com/"; }else if($id == automotive){ $url = "https://www.1004619.com/"; }else{ $url = "http://www.www.com"; } go_url($url); ?>
新增方法,改下id
}else if($id == 3){ $url = "http://www.www.com";