Redirect non-existant URLs from WP to frontpage

Hello experts,

some time ago i had a blog on the same URL and now i have a lot of requests on blog entrys that does not exist anymore, with apache and .htaccess it was easy, but how can i manage this with nginx.

So i want to redirect all non-existant URLs on my wordpress site to the frontpage


you could use the free redirection plugin directly in WP: nice thing about that plugin also is that it will watch for other updates and then write them to the DB for redirection.

a quick google search found this stackoverflow:

ok this works fine