如何在访问一个IP时自动转为另一个

来源:百度知道 编辑:UC知道 时间:2024/05/28 19:03:55
比如,我在用WEB访问192.168.1.1时自动转为访问192.168.1.2呢?

直接在网站上添加个跳转代码就行

<script>window.location="跳转地址"</script>

<meta http-equiv="Refresh" content="1000;跳转地址">

// asp 跳转
<%
response.redirect "跳转地址"
%>

// php 跳转
<?php
header("location: 跳转地址");
?>