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
已提问 2 个月前155 查看次数
1 回答
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
已回答 2 个月前

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则