I have one domain codesharehub.com that is hosted on AWS EC2 with elastic IP, 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. enter image description here


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. – Stephen Ostermiller Aug 3 '19 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.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.