boro
V2EX  ›  WordPress

301 跳转后旧 Feed 地址?feed=rss2 竟然是直到跳网站首页,哪里出错了?

  •  
  •   boro · May 27, 2015 · 2728 views
    This topic created in 4193 days ago, the information mentioned may be changed or developed.
    wordpress 修改固定链接后,在nginx下做了域名301跳转,发现旧的feed地址xxxx.com/?feed=rss2 是直接跳到网站首页去的,而不是跳到的feed地址xxx.com/feed上来。 不知道是哪里配置错误了。

    有哪位同学知道这是什么原因吗??Thanks!
    7 replies  •  2015-05-29 11:18:03 +08:00
    leassy
    leassy
    May 27, 2015
    1
    server {
    listen 80;
    server_name xxx.com;
    rewrite ^(.*) http://www.$server_name$1 permanent;
    }
    boro
    boro
    OP
    May 27, 2015
    2
    @leassy 我是这样写的,有误么?
    server {
    listen 127.0.0.1:8080;
    server_name xxx.com www.xxx.com;
    return 301 http://www.newxxx.com$request_uri;
    }
    leassy
    leassy
    May 27, 2015
    3
    这样写试试
    server {
    listen 8080;
    server_name xxx.com www.xxx.com;
    rewrite ^(.*) http://www.newxxx.com$1 permanent;
    }
    boro
    boro
    OP
    May 27, 2015
    4
    @leassy 还是一样都是跳到首页。这会和varnish的缓存规则有关系么?
    leassy
    leassy
    May 27, 2015
    5
    @boro 也有可能,清空缓存后再试试
    boro
    boro
    OP
    May 27, 2015
    6
    @leassy 清空了,没变化。
    minongbang
    minongbang
    May 29, 2015
    7
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   954 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 27ms · UTC 20:04 · PVG 04:04 · LAX 12:04 · JFK 15:04
    ♥ Do have faith in what you're doing.