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

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

          WordPress无免费单机炸金花插件外部链接自动添加nofollow标签

          2025-06-24 01:10:52 5394
          这样所有的外部链接就会自动加上nofollow标签。严格要求的话是需要在外部链接全部加上nofollow标签。可以直接找一些wordpress插件安装。在技术层面是有传递出去权重。当然目前一些wordpress主题设置有这个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写文章时,有些外部链接是没有加Nofollow标签,当然我们也可以通过代码实现无插件添加方法。

          本文地址:http://t3qdq.xny028cc.com/taste/2025-06-22-20-04-43-2.html
          版权声明

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

          热门标签

          全站热门

          40万m³/d!看上海城投水务泰和污水处理厂的领跑者标杆实践

          Crypto Markets in Retreat: BTC Losses $70K, WIF Plummets 11% Daily (Market Watch)

          WordPress插件Simple 301 Redirects重定向v2.0.9

          打破国际垄断!碧水源推动医药膜国产化替代

          B站视频下载软件工具推荐

          网站被IP频繁访问(阿里主机887timed out)

          申请/注册新域名需要注意哪些细节

          个人网站/公司logo标志免费在线制作

          友情链接