xrea
V2EX  ›  WordPress

用WP了,请教一个Rewrite规则

  •  
  •   xrea · Jan 21, 2011 · 5670 views
    This topic created in 5619 days ago, the information mentioned may be changed or developed.
    博客原来的链接是:
    www.test.com/a/hello-word

    新的链接是:
    www.test.com/xxx/a/hello-word


    请教一个Rewrite规则,老链接可以转到新链接,谢谢了

    ps:对搜索引擎是不是也要301重定向呢,请教。
    7 replies    1970-01-01 08:00:00 +08:00
    XDash
        1
    XDash  
       Jan 21, 2011
    同求,或者有什么插件可以解决的吗?手动一条条改太麻烦了,好几百篇呢。。
    benzhe
        2
    benzhe  
       Jan 21, 2011
    TheOnly92
        3
    TheOnly92  
       Jan 21, 2011
    RewriteRule ^/a/(.*) /xxx/a/$1 [R]

    这样么?
    XDash
        5
    XDash  
       Jan 21, 2011
    @roamlog 感谢推荐,已经转移成功~
    xiatian
        6
    xiatian  
       Jan 30, 2011
    Zac的这篇文章可能对你有用:http://www.seozac.com/ranking/301-test/
    ssword
        7
    ssword  
       Jan 30, 2011
    把原先的链接替换过来就行了,有个search and replace的插件很好用 http://wordpress.org/extend/plugins/search-and-replace/
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   4267 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 41ms · UTC 05:18 · PVG 13:18 · LAX 22:18 · JFK 01:18
    ♥ Do have faith in what you're doing.