Restructure project for security and offline capability

- Move content outside public web root for security
- Consolidate all code and assets in engine/ directory
- Download Bootstrap locally for offline functionality
- Update public/ to contain only entry point files
- Add router.php for PHP development server security
- Update README.md with new structure and setup instructions
- Block direct access to content files via URL
- Maintain clean separation between content and code
This commit is contained in:
2025-11-19 17:05:25 +01:00
parent 277f86346d
commit 494ae7dc3b
28 changed files with 2707 additions and 102 deletions

View File

@@ -44,10 +44,8 @@
RewriteCond %{REQUEST_FILENAME} -f
RewriteRule ^assets/.*$ - [L]
# Allow access to content files (except PHP)
RewriteCond %{REQUEST_FILENAME} -f
RewriteCond %{REQUEST_FILENAME} !\.php$
RewriteRule ^content/.*$ - [L]
# Block direct access to all content files
RewriteRule ^content/.*$ - [F,L]
</IfModule>
# Security headers