现在的博客cms基本上都是支持评论的,如果不能够支持评论功能,也就算不上是博客程序了,在博客之间互访时,博客主都会留下自己的网址,以便于能够获得相应的流量ip互访,而在默认的wordpress博客评论中,点击留言者的网址是直接跳转的,在这种情况下,如果留言越来越多的话,会严重影响自己站点的权重,所以国内的博客主题在评论的地方都是经过加工的。,看到不少的博客都是使用的goto跳转的形式来避免传递权重的,效果就类似于 http://www.xiariboke.net/goto.php?url=网站链接,这样的话,就相当于由外链转内链了,对于汇集自己站点的权重是很有好处的,实现这样的功能也是相当的简单,首先goto.php是一个真实的php文件所存在的,首先建立这个文件,代码如下:,说明一下,这个页面我们可以自己去diy一下,做成自己喜欢的样子,也可以加些js加载打开页面之类的效果,建好之后,命名为goto.php,放到根目录下,然后我们在万能的function里面加一个钩子就可以了,代码如下:,好了,一个简单的wordpress博客评论外链变成跳转的方式了,其实,如果我们单纯的为了避免权重传递的话,常用的方法还有nofollow标签,只要给跳转的网址添加nofollow标签就可以避免权重了,哪种方法合适就看自己怎么使用了。,

现在的博客cms基本上都是支持评论的,如果不能够支持评论功能,也就算不上是博客程序了,在博客之间互访时,博客主都会留下自己的网址,以便于能够获得相应的流量ip互访,而在默认的wordpress博客评论中,点击留言者的网址是直接跳转的,在这种情况下,如果留言越来越多的话,会严重影响自己站点的权重,所以国内的博客主题在评论的地方都是经过加工的。

看到不少的博客都是使用的goto跳转的形式来避免传递权重的,效果就类似于 http://www.xiariboke.net/goto.php?url=网站链接,这样的话,就相当于由外链转内链了,对于汇集自己站点的权重是很有好处的,实现这样的功能也是相当的简单,首先goto.php是一个真实的php文件所存在的,首先建立这个文件,代码如下:

  1.    
  2. "en">   
  3.    
  4. "UTF-8">   
  5. "Author" content="">   
  6. "Keywords" content="">   
  7. "Description" content="">   
  8. "robots"content="noindex,nofollow">   
  9. "refresh"content="3;url=">   
  10. 跳转页面   
  11.    
  12. .spinner {   
  13. margin: 100px auto 0;   
  14. width: 150px;   
  15. text-align: center;   
  16. }  
  17. .spinner > div {   
  18. width: 30px;   
  19. height: 30px;   
  20. border-radius: 100%;   
  21. display: inline-block;   
  22. -webkit-animation: bouncedelay 1.4s infinite ease-in-out;   
  23. animation: bouncedelay 1.4s infinite ease-in-out;   
  24. /* Prevent first frame from flickering when animation starts */   
  25. -webkit-animation-fill-mode: both;   
  26. animation-fill-mode: both;   
  27. }   
  28. .spinner .bounce1 {   
  29. -webkit-animation-delay: -0.32s;   
  30. animation-delay: -0.32s;   
  31. background-color: #428bca;   
  32. }   
  33. .spinner .bounce2 {   
  34. -webkit-animation-delay: -0.16s;   
  35. animation-delay: -0.16s;   
  36. background-color: #Dd534F;   
  37. }    
  38. .spinner .bounce3 {   
  39. -webkit-animation-delay: -0.01s;   
  40. animation-delay: -0.01s;   
  41. background-color: #67CF22;   
  42. } www.xiariboke.net  
  43. @-webkit-keyframes bouncedelay {   
  44. 0%, 80%, 100% { -webkit-transform: scale(0.0) }   
  45. % { -webkit-transform: scale(1.0) }   
  46. }   
  47. @keyframes bouncedelay {   
  48. 0%, 80%, 100% {   
  49. transform: scale(0.0);   
  50. -webkit-transform: scale(0.0);   
  51. } 40% {   
  52. transform: scale(1.0);   
  53. -webkit-transform: scale(1.0);   
  54. }   
  55. }   
  56.    
  57.    
  58.    
  59. class="spinner">   
  60. class="bounce1">
   
  • class="bounce2">
  •    
  • class="bounce3">