nginx - Google search result is displaying ip-address instead of domain name -


i've got website setup on static ip address. when search on google, google has ip-xx-xx-xxx-xxx.static.privatedns.com instead of domain name. ip-xx-xx-xxx-xxx.static.privatedns.com displayed in green under title of site.

every other search engine(bing, yahoo, duckduckgo) have correct domain name listed. how can fix google?

you should permanent redirect http://ip-xx-xx-xxx-xxx.static.privatedns.com/* real domain. nginx, it's matter of adding virtual host:

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

you may find useful add site google webmaster tools , monitor it.


Comments

Popular posts from this blog

matlab - Deleting rows with specific rules -

jquery - How would i go about shortening this code? And to cancel the previous click on click of new section? -