Fix Nginx Redirect Loop Caused by Rewrite Rules - Resolve NET::ERR_CERT_AUTHORITY_INVALID in Chrome Safe Mode-VS Code Git Changes Not Detected After Save: Fixes

Final checklist
- Confirm that the same symptom is gone after a restart or refresh.
- Keep the smallest working change and undo temporary diagnostic settings.