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

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

          WordPress无九游app插件外部链接自动添加nofollow标签线上网投在澳门的合法性

          2025-06-24 09:00:22 82839
          在技术层面是有传递出去权重。

          严格要求的话是需要在外部链接全部加上nofollow标签。可以直接找一些wordpress插件安装。有时内容会引用或分享一些外部线上网投在澳门的合法性链接地址,九游app如果手动每个链接加入是很麻烦,

          在wordpress写文章时,

          //文章自动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 文件中,当然目前一些w九游ap线上网投在澳门的合法性pordpress主题设置有这个nofollow标签功能。有些外部链接是没有加Nofollow标签,当然我们也可以通过代码实现无插件添加方法。这样所有的外部链接就会自动加上nofollow标签。

          本文地址:http://e4c2a.xny028cc.com/complaint/9.html
          版权声明

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

          热门标签

          全站热门

          HTML网页植物大战僵尸源码分享

          苹果智能家居新品或年底亮相:颠覆还是创新,拭目以待

          苹果智能家居新品或年底亮相:颠覆还是创新,拭目以待

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

          66toolkit在线查询工具箱v16.00英文版

          小米米家智能香氛机套装植萃系列:低成本高品质,打造清新家居环境

          下雪花背景404错误页面代码

          石头P20 Pro 上下水版,18500pa吸力再降2248元,真实力更实惠

          友情链接