All my old content (which no longer exists) is in the path mysite.com/2007/*
How can I write a redirect in nginx to redirect any requests to 2007 back to the homepage?
At the moment they just display a 404.
You didn't provide your config, but basically you need to insert this line into your "location" config:
rewrite "^/2007/.+$" / break;
Sign up using Google
Sign up using Facebook
Sign up using Stack Exchange
5 years ago