Changing Old WordPress permalink structure on Nginx

How to change WordPress permalink structure from /%year%/%monthnum%/%day%/%postname%/ to /%postname%/ with Nginx.

rewrite "^/[0-9]{4}/[0-9]{2}/[0-9]{2}/([a-z0-9\-/]+)"$1;

This would be included in your sites-available conf or which ever conf files handling this. My approach is to maintain a conf file strictly for site-specific URL rewrites, as well as a global wordpress.conf.

Notice there is no location directive preceding the regex rewrite. This directive cues with all of my other custom conf files.