# ==========================================================
# AUTO SSL & ACME CHALLENGE FIX
# ==========================================================
RewriteEngine On

# Allow Let's Encrypt / Sectigo DCV requests through (no redirect)
RewriteCond %{REQUEST_URI} ^/\.well-known/(acme-challenge|pki-validation)/
RewriteRule ^ - [L]

# ==========================================================
# REDIRECTS
# ==========================================================


RedirectMatch 301 ^/blog/2013/07/17/4608/ https://www.heritagepartscentre.com/uk/blog/vw-golf-mk2-buying-guide.html
RedirectMatch 301 ^/blog/2013/12/05/t4-buying-guide/ https://www.heritagepartscentre.com/au/blog/t4-buying-guide-au.html
RedirectMatch 301 ^/blog/2014/02/18/vw-heritage-t25t3-buying-guide https://www.heritagepartscentre.com/au/blog/VW-t25t3-buying-guide-au.html
RedirectMatch 301 ^/blog/2014/02/18/vw-heritage-t25t3-buying-guide/ https://www.heritagepartscentre.com/uk/blog/t25t3-buying-guide.html
RedirectMatch 301 ^/blog/2014/09/19/best-selling-t4-accessories-revealed/ https://www.heritagepartscentre.com/uk/blog/best-selling-t4-accessories-revealed-2.html
RedirectMatch 301 ^/blog/2014/11/20/karmann-ghia-type-1-buying-guide/ https://www.heritagepartscentre.com/uk/blog/karmann-ghia-buying-guide.html
RedirectMatch 301 ^/blog/2014/12/05/vw-corrado-buying-guide/ https://www.heritagepartscentre.com/uk/blog/vw-corrado-buying-guide.html
RedirectMatch 301 ^/blog/2014/12/30/brazilian-kombi-buyers-guide/ https://www.heritagepartscentre.com/uk/blog/vw-kombi-buying-guide.html
RedirectMatch 301 ^/blog/2015/02/24/seat-belts-classic-vws-regs-retro-fit/ https://www.heritagepartscentre.com/uk/blog/does-my-classic-car-need-seat-belts.html
RedirectMatch 301 ^/blog/2015/04/21/vw-heritage-vw-golf-mk1-buying-guide/ https://www.heritagepartscentre.com/uk/blog/golf-mk1-buying-guide.html
RedirectMatch 301 ^/blog/2015/04/30/vw-heritage-t5-buying-guide/ https://www.heritagepartscentre.com/uk/blog/vw-t5-buying-guide.html
RedirectMatch 301 ^/blog/2015/06/12/vw-heritage-buying-guide-mk1-golf-convertible/ https://www.heritagepartscentre.com/uk/blog/buying-guide-vw-mk1-golf-convertible.html
RedirectMatch 301 ^/blog/2015/07/08/vw-aircooled-engine-summer-survival-guide/ https://www.heritagepartscentre.com/uk/blog/how-to-keep-your-aircooled-vw-engine-cool.html
RedirectMatch 301 ^/blog/2015/07/13/history-of-the-watercooled-vw-engine/ https://www.heritagepartscentre.com/uk/blog/the-history-of-watercooled-vw-engines.html
RedirectMatch 301 ^/blog/2015/08/21/vw-heritage-vw-camper-buying-guide/ https://www.heritagepartscentre.com/uk/blog/vw-camper-buying-guide.html
RedirectMatch 301 ^/blog/2015/09/12/how-to-decipher-your-vw-beetle-engine-and-chassis-numbers/ https://www.heritagepartscentre.com/uk/blog/what-does-my-aircooled-vw-chassis-number-mean.html
RedirectMatch 301 ^/blog/2015/10/15/vw-heritage-mkiv-golf-buying-guide/ https://www.heritagepartscentre.com/uk/blog/golf-mk4-buying-guide.html
RedirectMatch 301 ^/blog/2015/10/20/guia-de-compra-de-golf-mk1-de-vw-heritage/ https://www.heritagepartscentre.com/es/blog/guia-de-compra-de-golf-mk1.html
RedirectMatch 301 ^/blog/2015/11/02/why-wont-my-vw-start/ https://www.heritagepartscentre.com/uk/blog/why-wont-my-classic-car-start.html
RedirectMatch 301 ^/blog/2015/12/03/whats-a-semi-auto-beetle/ https://www.heritagepartscentre.com/uk/blog/whats-a-semi-automatic-vw-beetle.html
RedirectMatch 301 ^/blog/2015/12/17/vw-golf-heater-problems/ https://www.heritagepartscentre.com/uk/blog/How-to-fix-vw-golf-heater-problems.html
RedirectMatch 301 ^/blog/2015/12/29/vw-air-cooled-heater-problems/ https://www.heritagepartscentre.com/uk/blog/vw-air-cooled-heater-problems.html
RedirectMatch 301 ^/blog/2016/01/05/vw-mk3-golf-buying-guide/ https://www.heritagepartscentre.com/uk/blog/vw-golf-mk3-buying-guide.html
RedirectMatch 301 ^/blog/2016/02/02/which-vw-t25-engine/ https://www.heritagepartscentre.com/uk/blog/which-vw-t25-engine-is-best-for-you.html
RedirectMatch 301 ^/blog/2016/02/24/guia-de-compra-de-vw-t4/ https://www.heritagepartscentre.com/es/blog/guia-de-compra-de-vw-t4.html
RedirectMatch 301 ^/blog/2016/03/08/vw-t3-guia-de-compra/ https://www.heritagepartscentre.com/es/blog/guia-de-compra-de-vw-t3.html
RedirectMatch 301 ^/blog/2016/04/15/vw-t3-kauftipps/ https://www.heritagepartscentre.com/de/blog/vw-t3-kauftipps.html
RedirectMatch 301 ^/blog/2016/04/28/guia-de-compra-de-vw-t5/ https://www.heritagepartscentre.com/es/blog/guia-de-compra-de-vw-t5.html
RedirectMatch 301 ^/blog/2016/04/29/vw-t1t2-bulli-kauftipps/ https://www.heritagepartscentre.com/de/blog/vw-t1-t2-bulli-kauftipps.html
RedirectMatch 301 ^/blog/2016/04/30/what-is-cal-style-and-cal-look/ https://www.heritagepartscentre.com/uk/blog/Cal-Look-Beetle-Styling-Guide.html
RedirectMatch 301 ^/blog/2016/05/06/vw-t4-kauftipps/ https://www.heritagepartscentre.com/de/blog/vw-t4-kauftipps.html
RedirectMatch 301 ^/blog/2016/05/10/what-wheels-will-fit-my-vw-beetle/ https://www.heritagepartscentre.com/uk/blog/what-wheels-will-fit-my-car.html
RedirectMatch 301 ^/blog/2016/05/27/volkswagen-t5-kauftipps/ https://www.heritagepartscentre.com/de/blog/volkswagen-t5-kauftipps.html
RedirectMatch 301 ^/blog/2016/06/14/guia-de-compra-de-vw-camper/ https://www.heritagepartscentre.com/es/blog/guia-de-compra-de-vw-camper.html
RedirectMatch 301 ^/blog/2016/08/10/guia-de-compra-de-golf-mk1-cabrio/ https://www.heritagepartscentre.com/es/blog/guia-de-compra-de-golf-mk1-cabrio.html
RedirectMatch 301 ^/blog/2016/09/15/syncro-the-go-anywhere-vw-t25/ https://www.heritagepartscentre.com/uk/blog/syncro-the-go-anywhere-vw-t25.html
RedirectMatch 301 ^/blog/2016/09/21/vw-t3-syncro-historia/ https://www.heritagepartscentre.com/es/blog/vw-syncro-la-t3-para-conducir-en-cualquier-terreno.html
RedirectMatch 301 ^/blog/2016/09/22/ultimate-winter-camping-guide/ https://www.heritagepartscentre.com/uk/blog/ultimate-winter-camping-guide.html
RedirectMatch 301 ^/blog/2016/09/26/freie-fahrt-mit-dem-t3-syncro/ https://www.heritagepartscentre.com/de/blog/freie-fahrt-mit-dem-t3-syncro.html
RedirectMatch 301 ^/blog/2016/10/01/guia-para-acampar-en-invierno/ https://www.heritagepartscentre.com/es/blog/guia-para-acampar-en-invierno.html
RedirectMatch 301 ^/blog/2016/10/03/der-ultimative-winter-camping-guide/ https://www.heritagepartscentre.com/de/blog/der-ultimative-winter-camping-guide.html
RedirectMatch 301 ^/blog/2016/10/06/the-importance-of-vw-clubs/ https://www.heritagepartscentre.com/uk/blog/the-importance-of-vw-clubs.html
RedirectMatch 301 ^/blog/2016/10/11/formar-parte-de-un-club-vw/ https://www.heritagepartscentre.com/es/blog/por-que-formar-parte-de-un-club-vw.html
RedirectMatch 301 ^/blog/2016/10/11/what-is-a-classic-car/ https://www.heritagepartscentre.com/uk/blog/what-is-a-classic-car.html
RedirectMatch 301 ^/blog/2016/10/18/t4-buying-tips/ https://www.heritagepartscentre.com/uk/blog/t4-buying-guide.html
RedirectMatch 301 ^/blog/2016/11/02/vw-mk1-caddy-buying-guide/ https://www.heritagepartscentre.com/uk/blog/vw-caddy-mk1-buying-guide.html
RedirectMatch 301 ^/blog/2016/11/04/know-your-vw-reds/ https://www.heritagepartscentre.com/uk/blog/know-your-vw-reds.html
RedirectMatch 301 ^/blog/2016/12/27/epic-mk1-golf-road-trip-time/ https://www.heritagepartscentre.com/de/blog/epic-mk1-golf-road-trip-time.html
RedirectMatch 301 ^/blog/2016/12/29/un-viaje-epico-de-30-000km-en-golf-mk1/ https://www.heritagepartscentre.com/es/blog/un-viaje-epico-de-30-000km-en-golf-mk1.html
RedirectMatch 301 ^/blog/2017/01/09/por-que-cada-vez-hay-mas-mujeres-que-compran-clasicos/ https://www.heritagepartscentre.com/es/blog/por-que-cada-vez-hay-mas-mujeres-que-compran-clasicos.html
RedirectMatch 301 ^/blog/2017/02/10/porsche-engined-b32-van-hottest-vw-bus-ever/ https://www.heritagepartscentre.com/uk/blog/porsche-engined-b32-van-hottest-vw-bus-ever.html
RedirectMatch 301 ^/blog/2017/02/16/es-esta-la-t3-mas-potente-de-la-historia/ https://www.heritagepartscentre.com/es/blog/es-esta-la-t3-mas-potente.html
RedirectMatch 301 ^/blog/2017/04/13/labour-love-vw-beetle-owner-story/ https://www.heritagepartscentre.com/uk/blog/labour-love-vw-beetle-owner-story.html
RedirectMatch 301 ^/blog/2017/05/12/golf-mk1-photoshoot-new-forest/ https://www.heritagepartscentre.com/uk/blog/golfs-in-the-forest.html
RedirectMatch 301 ^/blog/2017/08/10/know-your-vw-factories-wolfsburg/ https://www.heritagepartscentre.com/uk/blog/where-your-vw-was-made-wolfsburg-factory.html
RedirectMatch 301 ^/blog/2017/08/25/wer-hats-zeut-zum-klassiker/ https://www.heritagepartscentre.com/de/blog/wer-hats-zeut-zum-klassiker.html
RedirectMatch 301 ^/blog/2017/08/29/vw-hannover-factory/ https://www.heritagepartscentre.com/uk/blog/where-your-bus-was-made-vw-hannover-factory.html
RedirectMatch 301 ^/blog/2017/08/31/mk3-golf-special-editions/ https://www.heritagepartscentre.com/uk/blog/mk3-golf-special-editions.html
RedirectMatch 301 ^/blog/2017/09/13/vw-brake-fluid-all-you-need-to-know/ https://www.heritagepartscentre.com/uk/blog/brake-fluid-all-you-need-to-know.html
RedirectMatch 301 ^/blog/2017/09/18/know-your-vw-factories-osnabruck/ https://www.heritagepartscentre.com/uk/blog/where-was-my-car-made-karmann-factory.html
RedirectMatch 301 ^/blog/2017/09/20/lights-out-vw-beetle-photoshoot/ https://www.heritagepartscentre.com/au/blog/lights-out-vw-beetle-photoshoot.html
RedirectMatch 301 ^/blog/2017/09/26/understanding-your-t4/ https://www.heritagepartscentre.com/de/blog/vw-t4-die-modelle.html
RedirectMatch 301 ^/blog/2017/10/05/understanding-your-t4/ https://www.heritagepartscentre.com/es/blog/entendiendo-tu-t4.html
RedirectMatch 301 ^/blog/2017/10/20/6v-to-12v-vw-conversion/ https://www.heritagepartscentre.com/uk/blog/Volkswagen-6v-to-12v-conversion.html
RedirectMatch 301 ^/blog/2017/10/20/marks-leben-mit-bulli/ https://www.heritagepartscentre.com/de/blog/marks-leben-mit-bulli.html
RedirectMatch 301 ^/blog/2017/10/25/winter-weather-beaters/ https://www.heritagepartscentre.com/uk/blog/winter-weather-car-care.html
RedirectMatch 301 ^/blog/2017/11/08/camping-tips-day-expert/ https://www.heritagepartscentre.com/uk/blog/lets-go-outside-campervan-essentials.html
RedirectMatch 301 ^/blog/2017/11/10/karmann-ghia-race_car-portugal-2017/ https://www.heritagepartscentre.com/au/blog/karmann-ghia-race_car-portugal-2017.html
RedirectMatch 301 ^/blog/2017/11/10/karmann-ghia-race-car/ https://www.heritagepartscentre.com/de/blog/karmann-ghia-race-car.html
RedirectMatch 301 ^/blog/2017/12/08/vw-heritage-zu-besuch-bei-freunden-craig-sally/ https://www.heritagepartscentre.com/de/blog/heritage-zu-besuch-bei-freunden-craig-sally.html
RedirectMatch 301 ^/blog/2018/02/01/vorgestellt-alex-und-ihr-kaefer-vw-heritage-blog-deutsch/ https://www.heritagepartscentre.com/de/blog/vorgestellt-alex-und-ihr-kaefer-vw-heritage-blog-deutsch.html
RedirectMatch 301 ^/blog/category/eventos/ https://www.heritagepartscentre.com/au/blog/category/eventos.html
RedirectMatch 301 ^/blog/category/guias-de-compra/ https://www.heritagepartscentre.com/au/blog/category/guias-de-compra.html
RedirectMatch 301 ^/blog/category/motorsport/ https://www.heritagepartscentre.com/au/blog/tag/motorsport.html


# ==========================================================
# SAFE DOMAIN-WIDE REDIRECT (with AutoSSL exclusion)
# ==========================================================
RewriteCond %{REQUEST_URI} !^/\.well-known/(acme-challenge|pki-validation)/
RewriteCond %{HTTP_HOST} ^blog\.heritagepartscentre\.com$ [NC]
RewriteRule ^.*$ https://www.heritagepartscentre.com/uk/blog-page [R=301,L]