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달 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠