Accessing wordpress feed redirects to root folder

I am hosting a WordPress page on wordpress, so my domain is I’m using a proxy_pass in nginx so that my site is available under My settings are like this

location ~* ^/blog {
    proxy_set_header Accept-Encoding "";
    sub_filter '' '/blog/';
    sub_filter_once off;
    rewrite ^/blog/(.*) /$1 break;
    rewrite ^/blog / break;

Everything works, when I visit /blog I get the wordpress blog, when I visit a post it works, so sub-urls such as /blog/author/xzy is not a problem.

However, when wanting to reed the feed via I get redirected to, and I don’t know why. Why does it happen only for the feed url, not for the other ones?

The feed on the wordpress page is available under so I get where he get’s the url from, but why does he redirect for the feed, but not the other stuff?

Read more here: Accessing wordpress feed redirects to root folder

Leave a Reply

Your email address will not be published. Required fields are marked *