please I am on a vps and there is just one domain (mydomain.com) on the server. I have 2 IPs on this server. eg. IP1: 205.334.56.87 and IP2: 205.334.56.88 IP1 is the main server IP and IP2 is empty. Since there is just one domain on IP1, it is supposed to redirect to mydomain.com anytime I type 205.334.56.87 in the address bar but it doesn't redirect. I was having problems with googlebot because googlebot indexed both 205.334.56.87 and mydomain.com versions of the contents of my website and google reported those as duplicate contents. What i did was that, I logged in to cpanel and added these 2 lines to my .htaccess file
RewriteCond %{HTTP_HOST} ^205\.334\.56\.88
RewriteRule (.*) http://mydomain.com/$1 [R=301,L]
which redirected IP1 205.334.56.88 to mydomain.com without any problem. It helped got rid of the duplicate contents in google. However, I updated apache yesterday and today i realized 205.334.56.88 is not redirecting to mydomain.com despite having the above 2 lines in my htaccess file. I don't know what I'm doing wrong. Please help me.


LinkBack URL
About LinkBacks
Reply With Quote