# ========================================================== # thevillagecooks.com.au -> angelapalermo.com.au # Permanent (301) redirect for retired WordPress/WooCommerce site # Place in the document root of the thevillagecooks.com.au addon domain # Rename this file to: .htaccess # ========================================================== Options +FollowSymLinks RewriteEngine On # ---------------------------------------------------------- # 1. EXCLUSIONS - must come first # ---------------------------------------------------------- # Let AutoSSL / Let's Encrypt validate the domain. # Without this, the catch-all below redirects the validation # request and no certificate will ever issue. RewriteRule ^\.well-known/ - [L] # ---------------------------------------------------------- # 2. SPECIFIC PAGE MAPPINGS # ---------------------------------------------------------- # VERIFY THESE SLUGS BEFORE GOING LIVE. They are best guesses # based on typical WooCommerce/WordPress permalinks. Check the # real ones in Google Search Console (Performance > Pages) or # the old sitemap if you still have a copy. # Delete any line whose source URL never existed - a wrong # mapping is worse than no mapping. RewriteRule ^classes/?$ https://angelapalermo.com.au/classes.html [R=301,L] RewriteRule ^cooking-classes/?$ https://angelapalermo.com.au/classes.html [R=301,L] RewriteRule ^shop/?$ https://angelapalermo.com.au/classes.html [R=301,L] RewriteRule ^recipes/?$ https://angelapalermo.com.au/recipes.html [R=301,L] RewriteRule ^blog/?$ https://angelapalermo.com.au/blog.html [R=301,L] RewriteRule ^about/?$ https://angelapalermo.com.au/about.html [R=301,L] RewriteRule ^about-us/?$ https://angelapalermo.com.au/about.html [R=301,L] RewriteRule ^contact/?$ https://angelapalermo.com.au/contact.html [R=301,L] RewriteRule ^contact-us/?$ https://angelapalermo.com.au/contact.html [R=301,L] RewriteRule ^gift-vouchers?/?$ https://angelapalermo.com.au/vouchers.html [R=301,L] RewriteRule ^food-tours?/?$ https://angelapalermo.com.au/tours.html [R=301,L] RewriteRule ^terms.*$ https://angelapalermo.com.au/terms.html [R=301,L] RewriteRule ^privacy.*$ https://angelapalermo.com.au/privacy.html [R=301,L] # ---------------------------------------------------------- # 3. CATCH-ALL # ---------------------------------------------------------- # Everything else - old product pages, category archives, # /wp-admin, feeds, dead permalinks - goes to the homepage. # Deliberately does NOT preserve the path: old paths have no # equivalent on the new site and would only produce 404s. RewriteRule ^(.*)$ https://angelapalermo.com.au/ [R=301,L]