How do I set up a domain redirect that skips a subdomain?

What is the name of the domain?

getmintable.com

What is the issue you’re encountering

I want to redirect a domain to another BUT I need to skip a subdomain and all of its pages

What steps have you taken to resolve the issue?

I’ve been trying with the chat bot for HOURS. I’ve tried 2 rules - one to set up the redirect and the other to skip the subdomain. I also tried a custom rule with a conditional “AND” that said does not contain the subdomain but there wasn’t an expression that I could enter that was valid so I had to abandon this path.

I’m at my wit’s end. I need people to get to my website AND I need customers to be able to access the resources at the subdomain. Please help me!

Note: I found a post that had advice on how to set up a rule for 1 page. But I need to skip an entire subdomain from the redirect rule.

You just use hostname does not equal subdomain.example.com as your expression, or use it with AND if you have other conditions as well.

Thank you. I’ve done this but I’m getting a 404.

  1. The $1 option does not work with custom filter expressions.
  2. If you want to redirect the root domain as well, your current expression does not match that. The root domain does not have a . at the beginning.

Right now, https://test.getmintable.com redirects to https://themintable.co/$1, which is clearly not what you want.

Please try this instead:

Custom Filter Expression:
hostname does not equal subdomain.example.com

Then
Dynamic Target URL
concat("https://example.com",http.request.uri.path)
1 Like

THANK YOU SO MUCH. It worked!!

1 Like

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