My website is served with IP address instead of domain name in some search engines

0

Dear Community,

I've developed and deployed a website for an educational purpose. In some browsers such as Google, Yandex and Brave my website is served with domain name as normally but in other browsers such as DuckDuckGo, Bing and Yahoo, it is served with the IP Address of AWS Lightsail machine instance. I'm using Cloudfare DNS resolver and I really wonder what some browsers catch and others do not.

So, what are your suggestions?

Tumer
asked 2 months ago146 views
1 Answer
1

So the search engines crawl the web. They can either discover your site via crawling or you registering the site. Now depending on how the site was referenced, by IP or DNS, this will impact the crawling and subsequent links. This can also occur if a link in your own website refers to the website by IP.

To solve this, however it got leaked, is to ensure the website always redirects from an IP based URL to a DNS based URL. Once fixed, the search engines will eventually catch up. I am not aware if there are ways to sign up at each as the owner and fix the data.

One way to solve this, if you are using a Linux host, would be to add a rewrite to the htacces file like this (update to your IP):

RewriteEngine On
RewriteBase /
RewriteCond %{HTTP_HOST} ^12\.34\.56\.789$
RewriteRule ^(.*)$ http://www.yourdomain.com/$1 [L,R=301]
profile pictureAWS
answered a month ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions