Http.host.subdomains

What is the name of the domain?

.example.com

What is the issue you’re encountering

Unable to use http.host.subdomains

What steps have you taken to resolve the issue?

http.hosts works perfectly; however, http.host.subdomain and http.host.subdomains do not work in a subdomain-enabled wildcard redirect rule.

What are the steps to reproduce the issue?

Redirect Rules
If All Incoming Requests
Type: Dynamic
Expression: concat(“https://”, http.host.subdomain, “.example.com”, http.request.uri.path)
OR
Expression: concat(“https://”, http.host.subdomains, “.example.com”, http.request.uri.path)
Status code: 301

That’s not a field available under the ruleset engine as far as I know.

Can you explain what you are trying to do and someone might be able to advise a better solution.

If it’s a complex redirect and you have a paid account, you can consider using a snippet.