首页
学习
活动
专区
工具
TVP
发布
社区首页 >专栏 >go.php跳转不输出权重的跳转方式真的有用么?

go.php跳转不输出权重的跳转方式真的有用么?

作者头像
wordpress建站吧
发布2019-09-04 14:11:54
9710
发布2019-09-04 14:11:54
举报
文章被收录于专栏:wordpress建站吧wordpress建站吧

看到好多的网站都有在用go.php文件来做站外链接的跳转,已查阅大概是说这样可以不输出权重的,好奇感兴趣自己也网上找了一个来试试。

我们一般超链接,链接站外都是会添加rel=”nofollow”这样的字样,这个nofollow的作用百科是这样说的:nofollow 是HTML页面中a标签的属性值。这个标签的意义是告诉搜索引擎”不要追踪此网页上的链接或不要追踪此特定链接”。

go.php跳转不输出权重的跳转方式真的有用么?这个不太好说具体还需要进行一些进一步的测试才能知道。

所以个人感觉这个已经有搜索引擎”不要追踪”的作用了的。

不过还是比较好奇就添加了一个go.php文件来试试吧,以下代码收集自网上,并非自己所写:

<?php
$url = preg_replace('/^url=(.*)$/i','$1',$_SERVER["QUERY_STRING"]);if(!empty($url)) {
preg_match('/(http|https):\/\//',$url,$matches);//if($matches){
$url=$url;
$title='页面加载中,请稍候...';} else {
preg_match('/\./i',$url,$matche);if($matche){
$url='http://'.$url;
$title='页面加载中,请稍候...';} else {
$url='/';
$title='参数错误,正在返回首页...';}}} else {
$title='参数缺失,正在返回首页...';
$url='/';}?><html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><meta name="generator" content="" /><noscript><meta http–equiv="refresh" content="1;url='<?php echo $url;?>';"></noscript><script>function jump(){
location.href="<?php echo $url;?>";}//
setTimeout(jump, 1000);
setTimeout(function(){window.opener=null;window.close();}, 10000);</script><title><?php echo $title;?></title><meta name="robots" content="noindex, nofollow" /><style>body{background:#000}.loading{-webkit-animation:fadein 2s;-moz-animation:fadein 2s;-o-animation:fadein 2s;animation:fadein 2s}@-moz-keyframes fadein{from{opacity:0}to{opacity:1}}@-webkit-keyframes fadein{from{opacity:0}to{opacity:1}}@-o-keyframes fadein{from{opacity:0}to{opacity:1}}@keyframes fadein{from{opacity:0}to{opacity:1}}.spinner-wrapper{position:absolute;top:0;left:0;z-index:300;height:100%;min-width:100%;min-height:100%;background:rgba(255,255,255,0.93)}.spinner-text{position:absolute;top:50%;left:50%;margin-left:-90px;margin-top: 2px;color:#BBB;letter-spacing:1px;font-weight:700;font-size:36px;font-family:Arial}.spinner{position:absolute;top:50%;left:50%;display:block;margin-left:-160px;width:1px;height:1px;border:25px solid rgba(100,100,100,0.2);-webkit-border-radius:50px;-moz-border-radius:50px;border-radius:50px;border-left-color:transparent;border-right-color:transparent;-webkit-animation:spin 1.5s infinite;-moz-animation:spin 1.5s infinite;animation:spin 1.5s infinite}@-webkit-keyframes spin{0%,100%{-webkit-transform:rotate(0deg) scale(1)}50%{-webkit-transform:rotate(720deg) scale(0.6)}}@-moz-keyframes spin{0%,100%{-moz-transform:rotate(0deg) scale(1)}50%{-moz-transform:rotate(720deg) scale(0.6)}}@-o-keyframes spin{0%,100%{-o-transform:rotate(0deg) scale(1)}50%{-o-transform:rotate(720deg) scale(0.6)}}@keyframes spin{0%,100%{transform:rotate(0deg) scale(1)}50%{transform:rotate(720deg) scale(0.6)}}</style></head><body><div class="loading"><div class="spinner-wrapper"><span class="spinner-text">页面即将跳转,请稍候...</span><span class="spinner"></span></div></div></body></html>
本文参与 腾讯云自媒体分享计划,分享自微信公众号。
原始发表:2019-09-01,如有侵权请联系 cloudcommunity@tencent.com 删除

本文分享自 wordpress建站吧 微信公众号,前往查看

如有侵权,请联系 cloudcommunity@tencent.com 删除。

本文参与 腾讯云自媒体分享计划  ,欢迎热爱写作的你一起参与!

评论
登录后参与评论
0 条评论
热度
最新
推荐阅读
领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档