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

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

          WordPress无赏金女王问鼎下载入口苹果iOSapp下载安卓插件外部链接自动添加nofollow标签

          2025-06-22 02:17:32 39275
          这样所有的外部链接就会自动加上nofollow标签。严格要求的话是需要在外部链接全部加上nofollow标签。可以直接找一些wordpress插件安装。

          当然我们也可以通过代码实现无插件添加方法。问鼎下载入口苹果iOSong>赏金女王app下载安卓

          //文章自动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 文件中,有时内容会引用或分享一些外部链接地址,

          在wordpress写文章时,当然目前一些w赏金女王ap问鼎下载入口苹果iOSp下载安卓ordpress主题设置有这个nofollow标签功能。有些外部链接是没有加Nofollow标签,如果手动每个链接加入是很麻烦,在技术层面是有传递出去权重。

          本文地址:http://mbt69.xny028cc.com/wrap/6.html
          版权声明

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

          热门标签

          全站热门

          天猫精灵:跨设备连接领跑行业,品类覆盖引领消费新潮

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

          呆错免费开源图床系统源码

          WordPress免插件实现文章代码高亮方法

          35dir网站分类目录导航源码(经典彩色版)

          QQ互联申请接入qq登录APPID与APPKey方法

          黑色清爽大气wordpress博客主题,html静态模板

          WordPress网站提交搜索引擎插件IndexNow

          友情链接