# Dieter's Industrial — redirect map for the rebuild.
# Every old WooCommerce URL gets a 301 to its new home. Losing these is the
# single most common way a rebuild loses rankings.

RewriteEngine On

# --- old product category URLs ---
Redirect 301 /product-category/hot-water-pressure-washers/ /pressure-washers/hot-water/
Redirect 301 /product-category/cold-water-pressure-washer/ /pressure-washers/cold-water/
Redirect 301 /product-category/soft-wash-units/ /pressure-washers/soft-wash/
Redirect 301 /product-category/custom-rig-builds/ /pressure-washers/custom-builds/
Redirect 301 /product-category/surface-cleaners/ /surface-cleaners/
Redirect 301 /product-category/chemicals/ /chemicals/
Redirect 301 /product-category/parts/ /parts/
Redirect 301 /product-category/nozzles/ /parts/
Redirect 301 /product-category/hose-reels/ /parts/
Redirect 301 /product-category/hoses/ /parts/
Redirect 301 /product-category/trigger-guns/ /parts/
Redirect 301 /product-category/tanks/ /parts/
Redirect 301 /product-category/tucker/ /parts/
Redirect 301 /product-category/used-equipment/ /used-equipment/

# --- old product URLs ---
# WooCommerce used /product/<slug>/. Confirm each old slug against the live
# product-sitemap.xml before launch and map it to its new /product/ URL.
# Products whose slug is unchanged need no rule; the ones below are examples
# of the pattern to follow for any that were renamed.
# Redirect 301 /product/<old-slug>/ /product/be-commercial-hot-water-skid-8-5gpm-3500psi/
# Redirect 301 /product/<old-slug>/ /product/be-hot-water-skid-5-5gpm-4000psi/
# Redirect 301 /product/<old-slug>/ /product/be-hot-box-8-10gpm-12v/
# Redirect 301 /product/<old-slug>/ /product/alkota-430xm4/
# Redirect 301 /product/<old-slug>/ /product/alkota-420x4/
# Redirect 301 /product/<old-slug>/ /product/alkota-4405xd4/

# --- catch-all for the old shop root ---
Redirect 301 /shop /shop/

ErrorDocument 404 /404.html
