0

I have set up a website on my Proliant rack server (Running windows server 2012 R2) using IIS and Joomla as a CMS.

Everything works perfectly, except for one thing. Whenever I search up my website on Google, it shows my public IP instead of the domain name. It should look like this, but instead, it looks like this. How do I get my domain name to show up instead of the IP? I have configured the FQDN of my server to be example.com. My DNS records are as follows:

A record: Host:example.com, Points to: [my public IP]
CNAME: Host:www.example.com, Points to: example.com

I have set the live_site option in the Joomla config to https://example.com/. I have also claimed my domain on Google search console, if that is important.

Any help is appreciated.

Dave M
  • 4,494
  • 21
  • 30
  • 30
Ajax21
  • 5
  • 1

1 Answers1

0

Then your server is replying with full content to the IP address instead of answering with a redirect to the domain name and then replying with full content.
I suggest you look into this: IIS7.5 redirect IP to domain

unNamed
  • 523
  • 2
  • 10