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

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

          WordPress无九游游戏app插件外部链接自动添加nofollow标签金花三张牌免费版不充钱

          2025-06-22 16:25:59 564
          在技术层面是有传递出去权重。如果手动每个链接加入是很麻烦,当然我们也可以通过代码实现无插件添加方法。有些外部链接是没有加Nofollow标签,有时内容会引用或分享一些外部链金花三张牌免费版不充钱接地址,九游游戏app严格要求的话是需要在外部链接全部加上nofollow标签。可以直接找一些wordpress插件安装。这样所有的外部链接就会自动加上nofollow标签。

          //文章自动nofollowadd_filter( 'the_content', 'tin_seo_wl');function tin_seo_wl( $content ) {    $regexp = "<a\s[^>]*href=(\"??)([^\" >]*?)\\1[^>]*>";    if(preg九游游戏app_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 文件中,当然目前一些wordpress主题设置有这个nofollow标签功能。

          在wordpress写文章时,

          本文地址:http://s8qg9.xny028cc.com/guide/2025-06-21-01-36-50-8.html
          版权声明

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

          热门标签

          全站热门

          Excel表格批量提取文字上的超链接

          织梦dedecms修改文章,时间不变的方法

          PHP二维码在线制作生成网站源码

          5月30日,全新雷神Aura AI智能拍摄眼镜预约开启,颠覆你的摄影体验!

          wordpress移除后台外观下的编辑和仪表盘的模块

          javascript一元运算符与算术运算符

          小米新款智能净烟机S20上市:告别油烟困扰,还能实时监测空气质量

          TON Defies Market Sentiment With a Massive 23% Surge, BTC Slumps Toward $70K (Market Watch)

          友情链接