Direct requests to public IP to FQDN

What is the name of the domain?

example.com

What is the error number?

No error number

What is the issue you’re encountering

I am trying to redirect requests to my public ip 1.2.3.4 to www.example.com. I have tried a redirect rule, with IP as the match type. Seems straightforward, but the rule doesn’t redirect during testing. Instead 1.2.3.4 is forwarded to my reverse proxy traefik, which throws a 404 for unknown page.

What steps have you taken to resolve the issue?

I have played around with page rules and redirects to try and resolve.

Screenshot of the error

A request to your IP address won’t pass through Cloudflare so this can’t work. You’d have to redirect from your origin.

1 Like

That makes sense. Thank you!

1 Like

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