Nginx 301 jumps, old "Feed" address can not access


I encountered a puzzling Feed error:

I try to set 301 jump to

Then I found “” not jump to the “” this address. Access “” it jumps to Home here.

This is where the problem? How do I solve it? Thanks!

I am using Nginx+Varnish:

server {
return 301$request_uri;
server {
limit_conn one 20;
limit_rate 200k;
root /var/www/site;
index index.php index.html;
port_in_redirect off;
server_tokens off;

# Only allow these request methods
# Do not accept DELETE, SEARCH and other methods
if ($request_method !~ ^(GET|HEAD|POST)$ ) {
return 444;
# Deny certain Referers
if ( $http_referer ~* (babes|forsale|girl|jewelry|love|nudit|organic|poker|porn|sex|teen|nike|fat|golf|briefcase|education|webcam|zippo|hostgator|slaklyfreelay|outlook|seo) )
return 404;
return 403;

Submit an answer

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

In order to retain the query parameters when using a 301 redirect, you could use:

server {
    return 301$request_uri?$query_string;

Without the $query_string the query parameters (e.g. ?feed=rss2) will be dropped.