How to redirect http://220.127.116.11 to http://www.domain.com using 301 redirect?
I have a need to redirect requests made directly to the IP address of our server back to the official domain name of the server using a 301 redirect, but I'm not sure how to proceed. I've redirected other "vanity" domains easily, but this seems different.
The problem is that GoogleBot for some reason accesses our server by IP directly, without specifying the Host: header and is counting it as two separate pages in it's database (which is a problem).
So, I want any request made directly to the IP address without a Host: header to get redirected...
To complicate things however, the server is part of a farm so I don't want it's individual hostname to be redirected, just if it's made to the IP.
Is this possible?