Sowlov SEO + Security Theme Fix
================================

What was fixed
--------------
1. SEO meta tags were hardened in templates/_head.tpl:
   - Safe escaped title and description
   - Shorter SEO description length
   - Canonical URL
   - Robots meta rules for public/private pages
   - Open Graph URL/type/locale/image tags
   - Twitter image/title/description tags
   - Website + Organization structured data
   - Sowlov brand theme color #D61A59

2. Security hardening was added:
   - Escaped key values in the HTML head
   - Escaped JS globals in templates/_js_files.tpl
   - Escaped body data attributes in templates/_header.tpl
   - Removed eval() from the posts filter AJAX callback and allowed only safe redirect/reload callbacks
   - Added automatic rel="noopener noreferrer" to target="_blank" links
   - Added a theme .htaccess to stop direct access to .tpl, .php cache, .sql, .json, .txt, backup, and log files
   - Added safer headers for theme assets
   - Added long browser cache for static CSS/JS/images/fonts

3. Cache cleanup:
   - Old compiled template PHP files were removed from templates_compiled.
   - Keep templates_compiled writable so Sngine can regenerate fresh compiled templates.

Install steps
-------------
1. Back up your current elengine theme folder and database.
2. Upload this elengine folder to: /content/themes/elengine/
3. Delete old compiled files on the server inside:
   /content/themes/elengine/templates_compiled/
   Keep index.html and .htaccess if present.
4. Clear Sngine cache from Admin Panel if available.
5. Open the homepage, a profile page, a post page, and an admin page to confirm everything loads.
6. Optional: copy SOWLOV_ROOT_SECURITY_HTACCESS_SNIPPET.txt rules into your main public_html/.htaccess.
7. Optional: rename SOWLOV_ROBOTS_ROOT.txt to robots.txt and upload it to public_html/robots.txt.

Important note
--------------
The theme-level .htaccess protects files inside the theme folder only. For full-site HTTPS redirects,
security headers, and robots.txt, use the two optional root files included in this package.
