If you do a search: site:111.111.111 a bunch of our pages are indexed by the IP address. How do I fix this? I went into webmaster tools and it's got the actual domain related to the IP, so it won't work (I don't think)? Any info would be great!
Is a rewrite the best thing to do? (an htaccess mod_rewrite redirect from the ip (or anything NOT www.yourdomain.com) to the www.yourdomain.com.)
make sure you don't link to the ip address anywhere on your site....images, ect. that is the most likely reason....once you fix that, it will eventually remove the ip address from the index.
We're thinking that it came from when we were testing stuff on the IP, and the adsense ads were on there and that's how it got a hold of it. Now search results are showing the IP which really sucks though.
See the #2 result here: http://www.google.com/search?hl=en&...al&hs=LHj&q=free+rice+greenopolis&btnG=Search
it happened to me too, at some point the IP was before the actual domain in SERP, try to use the mod_rewrite like someone suggested above
I don't think it cud be a reason !! First: After this: Google webmaster tool will help you in this case !! Request Google to remove the pages index with the IP !!
(1) 301 redirect the IP to your domain (2) Add absolute URLs to your site, including the domain name in the URL Give it about 2 months and let us know.
I'm not sure what they're going to do, but I read to do a rewrite: RewriteCond %{HTTP_HOST} ^pubcon RewriteRule ^(.+) http://www.pubcon.com/$1 [L,R=301] RewriteCond %{HTTP_HOST} ^123.123.123.123 RewriteRule ^(.+) http://www.pubcon.com/$1 [L,R=301] I'll let you know how it goes though.
How do I do that? Put a request for them to remove the entire IP address? It looks as though it's tied to the domain directly (I added both the IP and the domain to the account and in the IP address one the domain is in the pull down for the removal request)
We can't do a redirect because we have a load balancer that is detecting whether each webserver is up and running by calling a script in the document root. The balancer queries the webservers by ip address, which would break if we simply redirected back to the domain