Files
cosmically-creative-site/.htaccess
T
blakeandOpenBot 9240e3f24f fix: switch Umami to self-hosted stats on every page
Replace the Umami Cloud tag with the self-hosted script at
stats.cosmicallycreative.com and its new website ID, add it to every
page (service pages, privacy policy and 404 had none), and allow the
new host in the Content-Security-Policy.

Co-authored-by: OpenBot <335604065+openbotgit[bot]@users.noreply.github.com>
2026-11-16 14:31:19 -06:00

30 lines
1.3 KiB
ApacheConf

# Cosmically Creative — Apache / LiteSpeed
# Canonical host: https://www.cosmicallycreative.com
<IfModule mod_rewrite.c>
RewriteEngine On
# 301 HTTP → HTTPS and apex → www (single hop)
RewriteCond %{HTTPS} !=on [OR]
RewriteCond %{HTTP_HOST} !^www\.cosmicallycreative\.com$ [NC]
RewriteRule ^ https://www.cosmicallycreative.com%{REQUEST_URI} [L,R=301]
</IfModule>
ErrorDocument 404 /404.html
<FilesMatch "^contact-config">
Require all denied
</FilesMatch>
AddType application/manifest+json .webmanifest
AddType application/xml .xml
<IfModule mod_headers.c>
Header always set Strict-Transport-Security "max-age=31536000; includeSubDomains"
Header always set X-Frame-Options "SAMEORIGIN"
Header always set X-Content-Type-Options "nosniff"
Header always set Referrer-Policy "strict-origin-when-cross-origin"
Header always set Permissions-Policy "camera=(), microphone=(), geolocation=()"
Header always set Content-Security-Policy "default-src 'self'; script-src 'self' 'unsafe-inline' https://stats.cosmicallycreative.com; style-src 'self' 'unsafe-inline' https://fonts.googleapis.com; font-src 'self' https://fonts.gstatic.com; img-src 'self' data:; connect-src 'self' https://stats.cosmicallycreative.com; form-action 'self'; frame-ancestors 'self'; base-uri 'self'"
</IfModule>