Prevent redirecting from a non-existent subdomain to an existent one

What is the name of the domain?

example.com

What is the issue you’re encountering

Accessing non-existant-subdomain.example.com redirects to existant-subdomain.com

What steps have you taken to resolve the issue?

  • Tried turning cloudflare proxy off and saw that the non-existent url throws a 404
  • Turned proxy on, Automatic HTTPS off, always use HTTPS off, see that it redirects instead of throw a 404.

How do I get it to throw an error on a non-existent sub-domain instead of redirecting to a random subdomain?

PS. there’s no page-rules, redirect-rules or any other rules

This topic was automatically closed after 15 days. New replies are no longer allowed.