## ============================================================
## 3D MUSKETEERS - PRETTY URL REWRITES
## Maps the clean URLs used in every internal <a href> (e.g. /services/3d-printing/)
## to the actual flat .html files sitting in this folder.
## Added because the site was built with pretty-URL links but flat filenames -
## without this file every internal link 404s on deploy.
## ============================================================
RewriteEngine On

# --- Homepage ---
RewriteRule ^$ home.html [L]

# --- Services ---
RewriteRule ^services/?$ services-hub.html [L]
RewriteRule ^services/3d-printing/?$ 3d-printing.html [L]
RewriteRule ^services/3d-scanning/?$ 3d-scanning.html [L]
RewriteRule ^services/3d-modeling-cad/?$ 3d-modeling-cad.html [L]
RewriteRule ^services/reverse-engineering/?$ reverse-engineering.html [L]
RewriteRule ^services/additive-manufacturing-consulting/?$ additive-manufacturing-consulting.html [L]

# --- Industries ---
RewriteRule ^industries/?$ industries-hub.html [L]
RewriteRule ^industries/accessible-museum-displays/?$ accessible-museum-displays.html [L]
RewriteRule ^industries/automotive-crash-scanning/?$ automotive-crash-scanning.html [L]
RewriteRule ^industries/historical-preservation/?$ historical-preservation.html [L]
RewriteRule ^industries/manufacturing/?$ manufacturing.html [L]
RewriteRule ^industries/powersports/?$ powersports.html [L]
RewriteRule ^industries/product-design/?$ product-design.html [L]
RewriteRule ^industries/rapid-prototyping/?$ rapid-prototyping.html [L]

# --- Top-level pages ---
RewriteRule ^3d-printer-repair/?$ 3d-printer-repair.html [L]
RewriteRule ^about-us/?$ about-us.html [L]
RewriteRule ^consumer-advocacy/?$ consumer-advocacy.html [L]
RewriteRule ^contact-us/?$ contact-us.html [L]
RewriteRule ^education/?$ education.html [L]
RewriteRule ^invention-help/?$ invention-help.html [L]
RewriteRule ^what-is-3d-musketeers/?$ what-is-3d-musketeers.html [L]

# Slug differs from filename - keep the SEO-chosen slug, map it to the real file
RewriteRule ^forensic-pathology-3d-scanning/?$ forensic-pathology.html [L]

# YouTube channel page
RewriteRule ^youtube/?$ youtube-channel.html [L]

# "Media" and "Podcast" nav/copy links currently have no dedicated page -
# routed to the YouTube channel page (its own canonical tag still points to
# /youtube/, so this doesn't create duplicate-content issues). Swap these to
# real destinations once dedicated Media/Podcast pages exist.
RewriteRule ^media/?$ youtube-channel.html [L]
RewriteRule ^podcast/?$ youtube-channel.html [L]

# Terms of Service - placeholder page, replace with real legal copy before this
# is treated as a finished page (see tos.html)
RewriteRule ^TOS/?$ tos.html [L]

Options -MultiViews
