I have one domain codesharehub.com that is hosted on AWS EC2 with elastic IP 52.66.150.16, I have added A record in DNS to map domain with IP but on google search of codesharehub I get IP address instead of domain URL. I am not able to understand what is the issue, please help. I have attached screenshot for reference.
2 Answers
One thing you can do is to set your server config to force HTTP requests to redirect to HTTPS. HTTPS cannot be done with only IP, it has to be a domain. So, this would make it basically impossible for Google to give an IP.
Edit: It seems like it already does this. This might be Google taking time to update. In Google console you can request a reindexing by the Googlebot.
-
This won't completely solve the problem. They need to redirect HTTP and HTTPS requests that use the IP address or an unrecognized host name. Commented Aug 3, 2019 at 11:00
Your site has not crawled Proper in Google. Google now takes 10 to 30 days to crawl a webpage or website, so if you can request through Google boot through reindexing in Google console. This will cause Google to crawl your site and maybe your problem.