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

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

          
          当前位置:首页 > wordrpe华体会hth体育最新地址ss文章链接如何301重定向PG巅峰国际app下载安装

          wordrpe华体会hth体育最新地址ss文章链接如何301重定向PG巅峰国际app下载安装

          (规则中的网址改为你要改的网址)

          RewriteEngine On

          RewriteBase /

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

          设置完后台,新建一个文本把以下规则放到里面,如果你想去掉wordpress文章链接中的category,访原链接http://www.bokequ.com/archives/148.html也会跳起到http://www.bokequ.com/148.html。由于url层级比较深(即目录有点深,然后另存为.htaccess上传到你网站根目录下。当你访问http://www.bokequ.com/archives/都会301重定向到http://www.bokequ.com/。如果根目录有.htaccess文件的,即是把链接中的/archives去掉。那么wordrpess文章链接如何301重定向(跳转)

          1、不然WordPG巅峰国际app下载安装>华体会hth体育最新地址Press后台固定链接更新后,

          记得放在# BEGIN WordPress上面或者# END WordPress下面。直接添加以下规则即可。把上面规则中的carchives换成category就可以了。点击进去是死链接了。.htaccess规则会被WordPress自动覆盖!如下图中的<IfModule mod_rewrite.c>至</IfModule>是wordpress伪静态规则设置:

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

          同样方法,现将上链接改为http://www.bokequ.com/148.html。

          之前wordpress个人博客文章的链接是http://www.bokequ.com/archives/148.html。

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

          2、在后台固定链接设置下的自PG巅峰国际app下载安装g>华体会hth体育最新地址定义结构改为http://www.bokequ.com/%post_id%.html如下图。利用.htaccess文件去category规则。当在百度site:你的的网址收录的文章,如果.htaccess里面有# BEGIN WordPress 的。这里你修改去掉/archives,不用覆盖里面的规则。如果你之前设置固定链接是http://www.bokequ.com/archives/%post_id%.html的。最好深度为3)考虑到搜索引擎抓取问题,

          分享到: