.htaccess 567 B

1234567891011121314151617181920212223242526
  1. <IfModule mod_headers.c>
  2. Header set X-Content-Type-Options "nosniff"
  3. Header append X-Frame-Options "DENY"
  4. Header set X-XSS-Protection "1; mode=block"
  5. Header unset X-Powered-By
  6. </IfModule>
  7. RewriteEngine On
  8. RewriteCond %{REQUEST_FILENAME} !-f
  9. RewriteCond %{REQUEST_FILENAME} !-d
  10. RewriteRule ^(.*)$ index.php [QSA,L]
  11. Options All -Indexes
  12. RedirectMatch 404 /\..*$
  13. <FilesMatch "(\.(ya?ml$|json|lock|fla|inc|ini|log|psd|sh|sql|swp)|~)$">
  14. ## Apache 2.2
  15. Order allow,deny
  16. Deny from all
  17. Satisfy All
  18. ## Apache 2.4
  19. # Require all denied
  20. </FilesMatch>