Is there a way to avoid redirect rule triggering for a subdomain

What is the name of the domain?

What is the issue you’re encountering

URLs on our subdomain are being redirected

What steps have you taken to resolve the issue?

Hello, we now have rules to redirect everything from old-domain to new-domain and also do a conversion as necessary from one specific old page to a new page. So far so good.

However, we have a subdomain which people will access using a client specific URL for example Home | Triton Software.

Is there a way we can stop our redirect rule from triggering when the subdomain is used so that these are left completely untouched?

Thanks

Hmmm. The links I provided above have been redirected :slight_smile:

Our domain is pisysmarine .com
The subdomain example is mms. pisysmarine. com/companyA and everything with mms in front of the domain at the moment is being redirected. I’m trying to modify the existing rule to avoid the redirection or have another rule that will recognize the subdomain and allow it through untouched.

Thanks

Can you share your existing rule? You’ll want to use a Custom Filter Expression where you use something like if hostname does not equal ...

Please use the preformatted text option (ctrl + e) to share the rule and to prevent any URLs from being turned into links.

1 Like

Hi @jonathan.shapiro ,

Update your previously created catch-all Page rule.

  • Change Apply the rule to “All incoming requests” to Custom filter expression
  • Add two expressions with an OR, the expression should look like this
(http.host eq "www.pisysmarine.com") or (http.host eq "pisysmarine.com") 
  • Set the URl redirect to Static and the URL to https://triton-soft.com/ and use 301 Status code
  • Make sure that you keep Last in the place at order
    This will ensure that all and only the traffic to the main domain and www subdomain is redirected, and as it is the last rule in the list it wont affect the downloads redirect.
1 Like

Thanks for the response, I have it working now based on the advice from @HenryB

1 Like

Perfect, thank you. That’s all working as needed now. Very grateful for your help.

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.