【问题标题】:Google search result is displaying ip-address instead of domain nameGoogle 搜索结果显示的是 IP 地址而不是域名
【发布时间】:2013-08-08 12:58:54
【问题描述】:

我在静态 IP 地址上设置了一个网站。当我在谷歌上搜索它时,谷歌有 ip-xx-xx-xxx-xxx.static.privatedns.com 而不是我的域名。 ip-xx-xx-xxx-xxx.static.privatedns.com 在站点标题下显示为绿色。

所有其他搜索引擎(bing、yahoo、duckduckgo)都列出了我正确的域名。如何通过 google 解决此问题?

【问题讨论】:

    标签: nginx dns ip-address


    【解决方案1】:

    您应该从http://ip-xx-xx-xxx-xxx.static.privatedns.com/* 永久重定向到您的真实域。使用 nginx,只需添加一个虚拟主机:

    server {
        listen 80;
        server_name ip-xx-xx-xxx-xxx.static.privatedns.com;
        rewrite ^(.*) http://my-real-domain.com$1 permanent;
    }
    

    您可能还会发现将您的网站添加到 Google Webmaster Tools 并对其进行监控很有用。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2017-01-03
      • 1970-01-01
      • 2020-08-16
      • 2016-11-11
      • 2019-12-22
      • 2013-05-21
      • 2015-09-11
      • 2018-09-10
      相关资源
      最近更新 更多