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

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

          WordPres问鼎娱乐s无征途国际PG下载地址最新更新内容插件外部链接自动添加nofollow标签

          2025-06-24 13:23:48 75192

          有时内容会引用或分享一些外部链接地址,在技术层面是有传递出去权重。当然目前一些wordpress主题设置有这个nofollow标签功能。

          征途国际PG下载地址最新更问鼎娱乐新内容在wordpress写文章时,可以直接找一些wordpress插件安装。有些外部链接是没有加Nofollow标签,这样所有的外部链接就会自动加上nofollow标签。如果手动每个问鼎娱乐链接征途国际PG下载地址最新更新内容加入是很麻烦,

          //文章自动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标签。

          本文地址:http://4fqps.xny028cc.com/toward/2025-06-21-22-12-11-4.html
          版权声明

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

          热门标签

          全站热门

          健康能量评估神器荣耀手表 Fit正式发布:轻享运动健康,499元起,你准备好了吗?

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

          WordPress添加QQ/微博登录Erphplogin插件

          小米智能门锁2指静脉增强版震撼登场:AI猫眼+可视大屏,安全又便捷,仅售1699元!

          卡通海底潜艇404页面动画特效

          python程序实现域名备案信息查询

          高温+越障,追觅S50Pro水箱版仅需2673元,智能洗地新标杆

          宝塔面板MySQL数据库自动重启设置

          友情链接