Nginx rewrite problem

location ~ ^ / new/ (. +) / (. +) {

proxy_pass nodejs;

}

The effect of

above is that if you visit http://localhost/new/25/9, give it to nodejs for processing. But now there is a http://localhost/news/25/9. I hope this news can be automatically converted to new,. How to configure the master rules? thank you very much.

Mar.19,2022

location ~ ^/new/(.+)/(.+) {
    proxy_pass nodejs;
}

location ~ ^/news/(.+)/(.+) {
    -sharp rewrite + permanent:  301 url 
    rewrite ^/news/(.*)$ /new/$1 permanent;
}
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1e455e8-43607.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1e455e8-43607.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?