DirectoryIndex index.html

# ── Clean URLs: /page → /page.html ──
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME}.html -f
RewriteRule ^([^.]+)$ $1.html [L]

# ── Custom error page ──
ErrorDocument 404 /404.html

# ── 301 redirects: retired pricing/package pages → new pricing guide ──
Redirect 301 /packages/pro-website-design-package/ /web-design-pricing.html
Redirect 301 /packages/website-and-blog-package/ /web-design-pricing.html
Redirect 301 /packages/one-page-scrolling-website-package/ /web-design-pricing.html
Redirect 301 /packages/custom-brand-design-package/ /web-design-pricing.html

# Optional: send the old /packages/ index to the guide too
Redirect 301 /packages/ /web-design-pricing.html

# ── 301 redirects: old directory-style blog URLs → new flat .html ──
Redirect 301 /10-common-website-mistakes-you-might-be-making/ /10-common-website-mistakes-you-might-be-making.html
Redirect 301 /the-6-essentials-of-a-powerful-brand-identity/ /the-6-essentials-of-a-powerful-brand-identity.html
Redirect 301 /unlocking-conversions-5-key-elements-to-turn-website-visitors-into-customers/ /unlocking-conversions-5-key-elements-to-turn-website-visitors-into-customers.html
Redirect 301 /frequently-asked-questions/ /frequently-asked-questions.html

# ── 301 redirects: retired quiz pages → most relevant content ──
Redirect 301 /platform-match/ /wordpress-vs-custom.html
Redirect 301 /brand-aesthetic/ /choosing-brand-colours.html

# php -- BEGIN cPanel-generated handler, do not edit
# Set the “ea-php81” package as the default “PHP” programming language.
<IfModule mime_module>
  AddHandler application/x-httpd-ea-php81 .php .php8 .phtml
</IfModule>
# php -- END cPanel-generated handler, do not edit
