Fix Amazon Lightsail 404 Error

Job ID: 40282426

Budget: ₹600 – ₹1,500 INR

After uploading a fresh set of files and reorganising the entire site structure on my Amazon Lightsail instance, every URL—including the homepage—now returns a 404. Nothing else on the server was changed, so I suspect the issue sits with the web-server configuration, .htaccess rules, or the Lightsail networking/DNS settings.

Here’s what I need:
• Diagnose why all pages are throwing 404s.
• Correct the root cause—whether that’s a VirtualHost mis-match, missing index file, wrong document root, or rewrite rule conflict.
• Verify the fix by showing the site loads normally over HTTP / HTTPS.
• Send me a concise summary of what you changed so I can track it for future deployments.

You’ll have full SSH access to the Lightsail instance. Feel free to use whichever tools you prefer—Apache/Nginx configs, AWS console, WP-CLI, etc.—as long as the error is gone and the site is reachable again.