Backup database and code changes - 2025-06-08 20:51:14

This commit is contained in:
root
2025-06-08 20:51:14 +00:00
parent 747ae076e2
commit 8d431b6cbd
53 changed files with 4482 additions and 406 deletions

View File

@@ -135,6 +135,14 @@ Options -Indexes
# Prevent access to logs and database directories
<IfModule mod_rewrite.c>
RewriteEngine On
# Clean URL rewriting - remove .php extension
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME}.php -f
RewriteRule ^(.+?)/?$ $1.php [L]
# Security rules
RewriteRule ^logs(/.*)?$ - [F,L]
RewriteRule ^database(/.*)?$ - [F,L]
RewriteRule ^\.git(/.*)?$ - [F,L]