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 個月前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南