Backup database and code changes - 2025-06-08 20:51:14
This commit is contained in:
@@ -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]
|
||||
|
||||
Reference in New Issue
Block a user