Forum Moderators: Robert Charlton & goodroi

Message Too Old, No Replies

Site indexed with domain name and ip address

How to remove IP address specific urls from google index?

         

kunwarbs

6:43 pm on Jul 19, 2007 (gmt 0)

10+ Year Member



Google has indexed my website with domain name as well as IP address

eg. when i search for my domain name, i get results containing urls
with my domain name and IP address as well-

mydomain.com/page.html
127.0.0.1/another_page.html

How can i tell google not to index the pages with IP address prefix?I
haven't used IP address anywhere while linking.

Please help...can it lead to duplicate content penalty also?
How can I approach google to remove urls with IP address..

g1smd

7:46 pm on Jul 19, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



A 301 redirect will fix it. Use .htaccess if you use Apache.

Code has been posted in many previous threads.

kunwarbs

1:42 pm on Jul 20, 2007 (gmt 0)

10+ Year Member



I am using a similar .htaccess rewrite rule and it works well for the subfolders WITHOUT having any .htaccess file. But this is NOT of any help for folders with their own .htaccess file

RewriteCond %{HTTP_HOST} ^127.0.0.1
RewriteRule (.*) [mydomain.com...] [R=301,L]

pls suggest...