Domain redirects to IP address instead of

Hi all, thanks for your help

I have a domain with Cloudflare DNS, and the site is hosted on Google Cloud with OpenLiteSpeed. When people enter, it redirects to the IP address. In the browser, it should stay as

HTTPS also doesn’t work, even though it is set up on the server. What configurations do I need to check to make sure it is working correctly?

Thanks a lot

issue video

Screenshot 2023-11-06 at 22.15.19

Hi Gustavo,

This is not a DNS issue. Unless you explicitly set up a Cloudflare Page Rule (or something similar) to redirect to the IP address, the redirect is most likely coming from the server behind Cloudflare, not from Cloudflare.

If you set your DNS record on the “www” label to “DNS only” (not proxied), and you still get redirected, the redirect is for sure done by the web server your “www” record is pointing to.

(HTTPS likely doesn’t work because the certificate only covers your domain, not that raw IP address, so it’s probably a consequence of the same issue.)

thanks for your help…

i send you a video of my config

i think no rules… and DNS ONLY on CNAME option (both options same result)

The root of your problem is that you installed your WordPress site with the IP address, rather than the domain name. The address used to install WordPress (IP address in your case) is fixed in the database and used to general ALL WordPress URLs.

That’s why, not just your homepage, but all your inner pages and posts show the IP address in their permalinks instead of your domain name. Same deal with the URLs of all attachments (uploaded files).

You need to configure your WordPress site to use your domain name rather than the IP address. Follow the official WordPress documentation below to change your WordPress site address.

And if you need further help with this, please head over to the official WordPress support forum, as, clearly, this is not a Cloudflare issue.

Good luck!


thanks to all brothers…

i check the rules (no rules)
i set www to “DNS only” (is better to put again in proxy?)
i change the site root to

and all is ok
1 Like

If you want to use Cloudflare’s performance and security features, then, yes, you do need to set the name to :orange: proxied

perfect… i think is better :point_up:

1 Like

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