# ---- Heedee Studios static site (cPanel / Apache) ----

# Serve index.html for folder URLs like /architect-seo/
DirectoryIndex index.php index.html

# Friendly 404 page
ErrorDocument 404 /404.html

# Canonicalise to non-www (matches the <link rel="canonical"> tags)
<IfModule mod_rewrite.c>
  RewriteEngine On
  RewriteCond %{HTTP_HOST} ^www\.heedeestudios\.com [NC]
  RewriteRule ^(.*)$ https://heedeestudios.com/$1 [R=301,L]
</IfModule>

# --- OPTIONAL: force HTTPS. Enable only if your host is NOT using
#     Cloudflare "Flexible" SSL (otherwise it can cause a redirect loop).
# <IfModule mod_rewrite.c>
#   RewriteCond %{HTTPS} off
#   RewriteRule ^(.*)$ https://%{HTTP_HOST}/$1 [R=301,L]
# </IfModule>

# Light caching for static assets (faster site, better SEO)
<IfModule mod_expires.c>
  ExpiresActive On
  ExpiresByType image/jpeg "access plus 1 month"
  ExpiresByType image/png  "access plus 1 month"
  ExpiresByType image/webp "access plus 1 month"
  ExpiresByType image/svg+xml "access plus 1 month"
  ExpiresByType text/css   "access plus 1 week"
  ExpiresByType application/javascript "access plus 1 week"
  ExpiresByType font/woff2 "access plus 1 month"
</IfModule>
