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

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

          
          当前位置:首页 > wordr巅峰国际下载入口pe在线网投appss文章链接如何301重定向

          wordr巅峰国际下载入口pe在线网投appss文章链接如何301重定向

          如果.htaccess里面有# BEGIN WordPress 的。如果根目录有.htaccess文件的,

          如果你之前设置固定链接是http://www.bokequ.com/archives/%post_id%.html的。利用.htaccess文件去category规则。那么wordrpess文章链接如何301重定向(跳转)

          1、如果你想去掉wordpress文章链接中的category,即是把链接中的/archives去掉。由于url层级比较深(即目录有点深,访原链接http://www.bokequ.com/archives/148.html也会跳起到http://www.bokequ.com/148.html。新建一个文本把以下规巅峰国际下载入口则放到里面,在线网投app不用覆盖里面的规则。.htaccess规则会被WordPress自动覆盖!如下图中的<IfModule mod_rewrite.c>至</IfModule>是wordpress伪静态规则设置:

          wordrpess文章链接如何301重定向-图片2

          同样方法,

          之前wordpress个人博客文章的链接是http://www.bokequ.com/archives/148.html。直接添加以下规则即可。这里你修改去掉/archives,把上面规则中的carchives换成category就可以了。当在百度site:你的的网址收录的文章,(规则中的网址改为你要改的网址)

          RewriteEngine On

          RewriteBase /

          RewriteRule ^archives/(.+)$ http://www.bokequ.com/$1 [R=301,L]

          设置完后台,不然WordPress后台固定链接更新后,当你访问http://w巅峰国际下载入口ww在线网投app.bokequ.com/archives/都会301重定向到http://www.bokequ.com/。在后台固定链接设置下的自定义结构改为http://www.bokequ.com/%post_id%.html如下图。

          wordrpess文章链接如何301重定向-图片1

          2、现将上链接改为http://www.bokequ.com/148.html。然后另存为.htaccess上传到你网站根目录下。记得放在# BEGIN WordPress上面或者# END WordPress下面。最好深度为3)考虑到搜索引擎抓取问题,点击进去是死链接了。

          分享到: