WPDIR
Everything and everyone WordPress

Regex 301 redirect rule /feed/ URLs using Safe Redirect Manager plugin

  • This topic is empty.
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #564 Reply
    Brenda
    Guest

    Redirect from: ^(.*)/feed/$

    Redirect to: /*

    #565 Reply
    Robert
    Guest

    This regex rule will 301 any /feed/ suffix URL requests to the parent article or page.

    #568 Reply
    Karen
    Guest

    this only seems to work for valid pages with valid /feed/ suffixes… if the article doesn’t exist, or the /feed/ is 404 error then it doesn’t redirect?

    #694 Reply
    Austin
    Guest

    this only seems to work for valid pages with valid /feed/ suffixes

    Yah, this is a major drawback, cuz sometimes bots will generate these /feed/ URLs even on pages that no longer exist, etc. It seems the only way to really fix this is with a rewrite rule in .htaccess or Nginx.

    I tried with Safe Redirect Manager but that also didn’t seem to work.

Viewing 4 posts - 1 through 4 (of 4 total)
Reply To: Reply #694 in Regex 301 redirect rule /feed/ URLs using Safe Redirect Manager plugin