# General Security .htaccess Rules - WordOps {{release}} # DO NOT MODIFY, ALL CHANGES WILL BE LOST AFTER AN WordOps (wo) UPDATE # Deny access to hidden files (except .well-known) RewriteEngine On RewriteRule "(^|/)\.(?!well-known\/)" - [F] # Deny access to backup, log, and config files Order Deny,Allow Deny from all # Deny access to readme, license, and similar files Order Deny,Allow Deny from all # Cache static files ExpiresActive On ExpiresByType image/jpeg "access plus 1 year" ExpiresByType image/gif "access plus 1 year" ExpiresByType image/png "access plus 1 year" ExpiresByType image/webp "access plus 1 year" ExpiresByType image/svg+xml "access plus 1 year" ExpiresByType image/x-icon "access plus 1 year" ExpiresByType text/css "access plus 1 year" ExpiresByType application/javascript "access plus 1 year" ExpiresByType application/x-javascript "access plus 1 year" ExpiresByType font/ttf "access plus 1 year" ExpiresByType font/otf "access plus 1 year" ExpiresByType font/woff "access plus 1 year" ExpiresByType font/woff2 "access plus 1 year" # CORS headers for static assets Header set Access-Control-Allow-Origin "*" # Security headers Header set X-Frame-Options "SAMEORIGIN" Header set X-Content-Type-Options "nosniff" Header set Referrer-Policy "strict-origin-when-cross-origin" Header set X-Powered-By "WordOps"