Attached are the current code rules, which prohibit access to language pack files and text files in WordPress, but also prohibit access to the website’s important robots.txt file. Although WordPress virtual robots.txt is used, It is also inaccessible. Can the Nginx master please give me some advice on how to write a judgment to exclude the robots.txt file?
location ~* ^.+\.(po|mo|txt)$ {
return 403;
}