# Uploaded with the static `out/` folder. Apache serves each page folder's index.html.
DirectoryIndex index.html

<IfModule mod_rewrite.c>
  RewriteEngine On

  # Same destinations the Next.js redirects used. These cannot run from a static export.
  RewriteRule ^finanace/?$ /finance/ [R=301,L]
  RewriteRule ^ppa-solar/?$ /solar-power-purchase-agreement/ [R=301,L]
  RewriteRule ^sa-battery-scheme/?$ https://acservices.biz/sa-battery-scheme/ [R=301,L]
</IfModule>

# SMTP settings live beside contact.php. Do not let them be downloaded.
<Files "contact-config.php">
  <IfModule mod_authz_core.c>
    Require all denied
  </IfModule>
  <IfModule !mod_authz_core.c>
    Deny from all
  </IfModule>
</Files>
