Task: Configure Nginx to Redirect All 404s to Homepage
Task: Configure Nginx to Redirect All 404s to Homepage: a task in Terminal-Lego-15k (Harbor dataset). Write an Nginx server block configuration that redirects all non-existent URLs (404 errors) to the homepage. The scenario is a website that has been shut down and replaced with a simple…
The task
Write an Nginx server block configuration that redirects all non-existent URLs (404 errors) to the homepage. The scenario is a website that has been shut down and replaced with a simple single-page HTML homepage. All old links and invalid URLs should redirect users to the homepage instead of showing 404 or 500 errors.
Part of PrimeIntellect/Terminal-Lego-15k.