Options -Indexes
ServerSignature Off
<FilesMatch "\.(sql|log|ini|bak|txt)$">
<IfModule mod_authz_core.c>
Require all denied
</IfModule>
<IfModule !mod_authz_core.c>
Order deny,allow
Deny from all
</IfModule>
</FilesMatch>
# پس از فعال‌سازی SSL، چهار خط زیر را از حالت کامنت خارج کنید:
# RewriteEngine On
# RewriteCond %{HTTPS} off
# RewriteRule ^(.*)$ https://%{HTTP_HOST}/$1 [R=301,L]
