How can I redirect users to URL based on multiple value?