Sindbad~EG File Manager
RewriteEngine On
# Prevent directory listing
Options -Indexes
# Protect sensitive files
<FilesMatch "^\.">
Order allow,deny
Deny from all
</FilesMatch>
# Set default index
DirectoryIndex index.php
# Error pages - Use relative paths
ErrorDocument 404 /404.php
ErrorDocument 403 /403.php
# Security headers
<IfModule mod_headers.c>
Header set X-Content-Type-Options "nosniff"
Header set X-Frame-Options "SAMEORIGIN"
Header set X-XSS-Protection "1; mode=block"
</IfModule>
# PHP settings - Commented out for shared hosting compatibility
# Configure these via cPanel PHP Settings or php.ini instead:
# - upload_max_filesize: 10M
# - post_max_size: 10M
# - max_execution_time: 300
# - max_input_time: 300
#
# If you have a VPS/Dedicated server, you can uncomment these:
# php_value upload_max_filesize 10M
# php_value post_max_size 10M
# php_value max_execution_time 300
# php_value max_input_time 300
# php -- BEGIN cPanel-generated handler, do not edit
# Set the “ea-php82” package as the default “PHP” programming language.
<IfModule mime_module>
AddHandler application/x-httpd-ea-php82 .php .php8 .phtml
</IfModule>
# php -- END cPanel-generated handler, do not edit
Sindbad File Manager Version 1.0, Coded By Sindbad EG ~ The Terrorists