but if "cname.yourcompany.com" (user isnt logged in) then redirect to the customers apex your company.com"
I have tried adding a redirect rule with a custom filter expression as so : (http.host ne "mycompany.com") then redirect to static "yourcompany.com"
expected result is that if the http host is not equal to "mycompany.com" (e.g cname.yourcompany.com) then redirect to "yourcompany.com" (unless on /dash url path)