This commit is contained in:
2026-02-06 11:08:58 +01:00
parent f96993bb3b
commit aa30e33805
5 changed files with 8 additions and 29 deletions

View File

@@ -12,6 +12,7 @@ Options -Indexes
AddOutputFilterByType DEFLATE application/rss+xml
AddOutputFilterByType DEFLATE application/javascript
AddOutputFilterByType DEFLATE application/x-javascript
AddOutputFilterByType DEFLATE application/json
</IfModule>
# Set caching headers
@@ -36,31 +37,6 @@ Options -Indexes
Header always set Referrer-Policy "strict-origin-when-cross-origin"
</IfModule>
# PHP settings (if needed)
<IfModule mod_php7.c>
php_flag display_errors Off
php_value error_reporting E_ALL & ~E_DEPRECATED & ~E_STRICT
</IfModule>
<IfModule mod_php8.c>
php_flag display_errors Off
php_value error_reporting E_ALL & ~E_DEPRECATED & ~E_STRICT
</IfModule>
# Handle PHP files if mod_php is not available
<Files "*.php">
SetHandler application/x-httpd-php
</Files>
# Alternative PHP handler for different server configurations
<IfModule mod_fcgid.c>
AddHandler fcgid-script .php
</IfModule>
<IfModule mod_cgi.c>
AddHandler cgi-script .php
</IfModule>
# Force HTTPS (uncomment if you have SSL certificate)
# RewriteEngine On
# RewriteCond %{HTTPS} off