xrea
V2EX  ›  WordPress

用WP了,请教一个Rewrite规则

  •  
  •   xrea · Jan 21, 2011 · 5973 views
    This topic created in 5780 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
    XDash
    Jan 21, 2011
    1
    同求,或者有什么插件可以解决的吗?手动一条条改太麻烦了,好几百篇呢。。
    TheOnly92
    TheOnly92
    Jan 21, 2011
    3
    RewriteRule ^/a/(.*) /xxx/a/$1 [R]

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