# CH Group: Apache / LiteSpeed rules. Cloudflare Pages uses _redirects (same list).
Options -Indexes
DirectoryIndex index.html
ErrorDocument 404 /404.html

<IfModule mod_mime.c>
  AddType text/vtt .vtt
  AddType video/mp4 .mp4
  AddType font/woff2 .woff2
</IfModule>

<IfModule mod_rewrite.c>
RewriteEngine On
# Old Webflow URLs (BRIEF section 7)
RewriteRule ^services/?$ /businesses/ [R=301,NE,L]
RewriteRule ^services//?$ /businesses/ [R=301,NE,L]
RewriteRule ^solar-projects/?$ /projects/ [R=301,NE,L]
RewriteRule ^solar-projects//?$ /projects/ [R=301,NE,L]
RewriteRule ^blogs/?$ /blog/ [R=301,NE,L]
RewriteRule ^blogs//?$ /blog/ [R=301,NE,L]
RewriteRule ^contact/?$ /book/ [R=301,NE,L]
RewriteRule ^contact//?$ /book/ [R=301,NE,L]
RewriteRule ^about-us/?$ /about/ [R=301,NE,L]
RewriteRule ^about-us//?$ /about/ [R=301,NE,L]
RewriteRule ^calculator/?$ https://calc.chgroup.co.uk [R=301,NE,L]
RewriteRule ^calculator//?$ https://calc.chgroup.co.uk [R=301,NE,L]
RewriteRule ^information-pages/privacy-policy-complaints/?$ /privacy/ [R=301,NE,L]
RewriteRule ^information-pages/privacy-policy-complaints//?$ /privacy/ [R=301,NE,L]
RewriteRule ^information-pages/terms-and-conditions/?$ /terms/ [R=301,NE,L]
RewriteRule ^information-pages/terms-and-conditions//?$ /terms/ [R=301,NE,L]
RewriteRule ^blogs/ppa-manufacturing/?$ /blogs/power-purchase-agreement-manufacturing/ [R=301,NE,L]
RewriteRule ^blogs/ppa-manufacturing//?$ /blogs/power-purchase-agreement-manufacturing/ [R=301,NE,L]
RewriteRule ^services/.*$ /businesses/ [R=301,NE,L]
RewriteRule ^solar-projects/.*$ /projects/ [R=301,NE,L]
</IfModule>
