网页跳转代码

来源:百度知道 编辑:UC知道 时间:2024/05/21 13:15:52
点击 http://www.123.com/123/aaa/cn.htm

跳转 http://www.888.com/123/aaa/cn.htm

这个代码谁知道
意思就是跳转过去的网址只变域名其他不变
网站只更换网址但是目录和网页都是一模一样的
当用户在搜索引擎搜索到
http://www.123.com/123/aaa/cn.htm
自动判断到
http://www.888.com/123/aaa/cn.htm

这个其实是一个有高级功能的404错误页面

的123。com/cn.htm里写:location.href="888.com/cn.htm"就可以了

在第一页加入 content为时间 单位秒

<Meta http-equiv=refresh content=2;url="ttp://www.888.com/123/aaa/cn.htm">