Nginx system how to write 301redirect to access the former is not 404 pages but can open the latter?

Nginx system, how to write 301redirect to:
Baodu123.com/bd/964.html
jump to:
Baodu123.com/bd/964
and visit the former not 404 pages, but the latter can be opened.

Apr.01,2021
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-1eb6bc0-483cf.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-1eb6bc0-483cf.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?