RewriteEngine On # 1. Exclude the membership subdomain RewriteCond %{HTTP_HOST} !^membership\.tawca\.or\.tz$ [NC] # 2. Ensure we aren't already on the destination (to prevent loops) RewriteCond %{HTTP_HOST} !^tawca\.netlify\.app$ [NC] # 3. Redirect everything else RewriteRule ^(.*)$ https://tawca.netlify.app/$1 [R=301,L]