<code id='E7BFC8CD0B'></code><style id='E7BFC8CD0B'></style>
    • <acronym id='E7BFC8CD0B'></acronym>
      <center id='E7BFC8CD0B'><center id='E7BFC8CD0B'><tfoot id='E7BFC8CD0B'></tfoot></center><abbr id='E7BFC8CD0B'><dir id='E7BFC8CD0B'><tfoot id='E7BFC8CD0B'></tfoot><noframes id='E7BFC8CD0B'>

    • <optgroup id='E7BFC8CD0B'><strike id='E7BFC8CD0B'><sup id='E7BFC8CD0B'></sup></strike><code id='E7BFC8CD0B'></code></optgroup>
        1. <b id='E7BFC8CD0B'><label id='E7BFC8CD0B'><select id='E7BFC8CD0B'><dt id='E7BFC8CD0B'><span id='E7BFC8CD0B'></span></dt></select></label></b><u id='E7BFC8CD0B'></u>
          <i id='E7BFC8CD0B'><strike id='E7BFC8CD0B'><tt id='E7BFC8CD0B'><pre id='E7BFC8CD0B'></pre></tt></strike></i>

          WordPress无极速赛车大数据分析软件插件外部链接自动添加nofollow标签PG巅峰国际安卓版下载

          2025-06-20 18:49:57 259

          //文章自动nofollowadd_filter( 'the_content', 'tin_seo_wl');function tin_seo_wl( $content ) {    $regexp = "<a\s[^>]*href=(\"??)([^\" >]*?)\\1[^>]*>";    if(preg_match_all("/$regexp/siU", $content, $matches, PREG_SET_ORDER)) {        if( !empty($matches) ) {               $srcUrl = get_option('siteurl');            for ($i=0; $i < count($matches); $i++)            {                   $tag = $matches[$i][0];                $tag2 = $matches[$i][0];                $url = $matches[$i][0];                   $noFollow = '';                $pattern = '/target\s*=\s*"\s*_blank\s*"/';                preg_match($pattern, $tag2, $match, PREG_OFFSET_CAPTURE);                if( count($match) < 1 )                    $noFollow .= ' target="_blank" ';                   $pattern = '/rel\s*=\s*"\s*[n|d]ofollow\s*"/';                preg_match($pattern, $tag2, $match, PREG_OFFSET_CAPTURE);                if( count($match) < 1 ) $noFollow .= ' rel="nofollow" '; $pos = strpos($url,$srcUrl); if ($pos === false) { $tag = rtrim ($tag,'>');                    $tag .= $noFollow.'>';                    $content = str_replace($tag2,$tag,$content);                }            }        }    }       $content = str_replace(']]>', ']]>', $content);    return $content;}

          添加到当前主题Funcions.php 文件中,这样所有的外部链接就会自动加上nofollow标签。如果手动每个链接加入是很麻烦,在技术层面是有传递出去权重。当然我们也可以通过代码实现PG巅峰国际安卓版下载无插件添加方法。极速赛车大数据分析软件

          在wordpress写文章时,当然目前一些wordpress主题设置有这个nofollow标签功能。严格要求的话是需要在外部链接全部加上nofollow标签。有时内容PG巅峰国际安卓版下载g>极速赛车大数据分析软件会引用或分享一些外部链接地址,有些外部链接是没有加Nofollow标签,

          可以直接找一些wordpress插件安装。
          本文地址:http://3ucgf.xny028cc.com/ad/2025-06-19-22-08-53-2.html
          版权声明

          本文仅代表作者观点,不代表本站立场。
          本文系作者授权发表,未经许可,不得转载。

          热门标签

          全站热门

          爱奇艺qsv/腾讯视频qlv/优酷视频kux格式转换MP4

          个人网站如何选择关键词

          苹果新款HomePod软件将助老款HomePod系列设备焕新春

          个人网站被恶意镜像解决方法

          11.6亿元!沂源县沂河沂源源头水保护区环境治理与产业开发EOD项目一期将招标

          荣耀手表Fit即将揭秘健康能量评估功能,萌宠表盘引爆5月28日,科技与时尚碰撞,你准备好了吗?

          web前端JavaScript介绍

          Instagram APP是什么软件

          友情链接