I recently found that Google Search Console has picked up the RSS links for the individual posts and pages on a client site and is attempting to index them. For example, https://example.com/this-is-a-post/feed/ or https://example.com/about-us/feed/
I've found a number of plugins that will disable RSS for the entire website and a number of code examples that will disable RSS entirely for a given post type. What I'd like to do is keep the main RSS feed intact and just disable the /feed/ endpoint on all pages and posts. Even better would be to respond with 301 redirect request for those URLs to the post itself.
I've done a ton of googling and reading on WordPress' developer docs but have come up empty. Is anyone aware of a solution for this? I would definitely appreciate the help.