THE 247 ONLINE - CLEAN RECOVERY PACKAGE
======================================

Purpose
-------
This package is based on the supplied website backup and is intended to isolate the current HTTP 500 problem while preserving the existing site content.

What was changed
-----------------
1. Replaced the legacy .htaccess with a conservative Apache 2.4 configuration. The old file is preserved at _recovery_original/.htaccess.
2. Preserved the old error_log at _recovery_original/error_log; it contains historical entries and is not used as the current diagnostic source.
3. Centralized database/SMTP configuration in config/site-config.php. Environment variables can override the stored fallback values.
4. Added config/.htaccess to prevent direct access to configuration files.
5. Replaced the obsolete PHP __autoload() fallback in PHPMailerAutoload.php with spl_autoload_register().
6. Converted deprecated curly-brace array/string access in the legacy htmlfilter.php so the file parses on PHP 8+.
7. Updated the site's mail handlers to use the centralized SMTP configuration.
8. Added server-health.php for one-time deployment diagnostics.
9. Added this README.

DEPLOYMENT
----------
A. Make a full backup of the current public_html before replacing anything.
B. Upload/extract this package into the site's document root.
C. Test https://the247online.com/ and https://www.the247online.com/.
D. If the home page works, test the enquiry/contact forms and newsletter separately.
E. Open server-health.php using the key in config/health-key.php, then DELETE server-health.php and config/health-key.php after diagnostics.

SECURITY
--------
The supplied backup contained SMTP and database credentials. They have been centralized here for compatibility, but these credentials should be ROTATED after deployment. Prefer setting THE247_DB_PASS, THE247_SMTP_PASS and related environment variables in the hosting control panel, then remove the fallback secrets from site-config.php.

IMPORTANT
---------
This package does not force HTTPS or www redirects. That is deliberate: redirects are kept out until the 500 problem is confirmed resolved. Add a single canonical redirect later if required.

Health-check key
----------------
OBfl5-g38e_JIMhsT48SqnLj

After using it, delete server-health.php and config/health-key.php.
