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

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

          WordPre赏金游app官网下载ss无hth网页版在线登录入口插件外部链接自动添加nofollow标签

          2025-06-18 01:07:30 5
          当然我们也可以通过代码实现无插件添加方法。在技术层面是有传递出去权重。有些外部链接是没有加Nofollow标签,

          如果手动赏金游app官网下载>hth网页版在线登录入口每个链接加入是很麻烦,有时内容会引用或分享一些外部链接地址,

          在wordpress写文章时,当然目前一些wordpress主题设置有这个nofollow标签功能。

          //文章自动nofollowadd_filter( 'the_content', 'tin_seo_wl');function tin_seo_w赏金游app官网下载l( $content ) {    $regexp = "<a\s[^>]*href=(\"??)([^\" >]*?)\\1[^>]*>";    if(preghth网页版在线登录入口_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标签。严格要求的话是需要在外部链接全部加上nofollow标签。

          本文地址:http://khn6a.xny028cc.com/attack/0-962759.html
          版权声明

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

          热门标签

          全站热门

          HTML5+three实现3D酷炫拼魔方游戏代码

          网站网页内容文字禁止复制如何解决?

          html5简洁瀑布流布局网页模板

          wordpress如何防止垃圾评论/回复

          WHOIS域名信息查询php源码

          纤薄机身扫地新宠:科沃斯T50 PRO,水箱版1613元国补新低,体验升级更轻松

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

          圣诞节幽灵404页面代码

          友情链接