Below is my rewriting rule. When I am browsing corredorpropiedades.cl it is coming up with https://www.jahrsenoret.cl, fine. But I am browsing www.corredorpropiedades.cl it isn’t working as the server comes up with https://www.corredorpropiedades.cl Any idea why ?
Could it be because HTTP_HOST in your condition is looking for exactly corredorpropiedades.cl notice the ^ and $ symbols? when HTTP_HOST in your other case is going to be www.corredorpropiedades.cl and thus not meet the condition.
Now this is off the top of my head first guess, but here we made specify multiple conditions and also put in logicalGrouping="MatchAny" to say that if any of the conditions are matched, to redirect.
See if this works for you. Hopefully you see where I am going with this.