.htaccess file
Advanced control for key website settings
# Enable URL rewriting (required for pretty URLs, redirects, etc)
<IfModule mod_rewrite.c>
RewriteEngine On
</IfModule>
# Security Headers
<IfModule mod_headers.c>
Header always set X-Content-Type-Options "nosniff"
Header always set X-Frame-Options "SAMEORIGIN"
Header always set Referrer-Policy "strict-origin-when-cross-origin"
Header always set Permissions-Policy "geolocation=(), camera=(), microphone=()"
Header always set Strict-Transport-Security "max-age=63072000; includeSubDomains; preload"
</IfModule>
# Enable Gzip compression
<IfModule mod_deflate.c>
AddOutputFilterByType DEFLATE text/plain text/html text/xml text/css application/javascript application/json
</IfModule>
# Disable directory listing
Options -IndexesAdding an .htaccess file to your website in Elements

Pretty URL's in the Elements CMS
CSP (Content Security Policy)
Last updated
Was this helpful?

