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

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

          WordPress无金花三张游戏接单平台哪个好牌免费版不充钱插件外部链接自动添加nofollow标签

          2025-06-21 18:34:06 75
          严格要求的话是需要在外部链接全部加上nofollow标签。当然我们也可以通过代码实现无插件添加方法。当然目前一些wordpress主题设置有这个nofollow标签功能。有时内容会引用或分享一些外部链接地址,

          在wordpress写文章时,游戏接单平台哪个好ong>金花三张牌免费版不充钱有些外部链接是没有加Nofollow标签,

          这样所有的外部链接就会自动加上nofollow标签。如果手金花三张游戏接单平台哪个好牌免费版不充钱动每个链接加入是很麻烦,

          //文章自动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插件安装。

          本文地址:http://d7fbn.xny028cc.com/secure/1-1617.html
          版权声明

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

          热门标签

          全站热门

          宝塔Linux面板地址/用户名密码忘记找回方法

          wordpress时光轴自适应主题jinsomB模板

          搜索引擎的工作原理(一)

          wordpress M1主题(精仿唬嗅网v2.3)/新闻网站模板/cms模板

          WordPress动漫图片主题cxudy0.2下载

          HTML5表单元form(一)

          Bitcoin (BTC) Challenges $68K, Dogecoin (DOGE) Soars 5% Daily (Weekend Watch)

          wordpress网站诊断提升打开速度

          友情链接