Google Indexes My Website Using IP Address
I've just noticed that google indexed some of my web pages using IP address.
Example:
How can I prevent Google to index pages like in the example above?
Thanks..
2 Replies
$HTTP["host"] =~ "^www\.(.*)"
{
url.redirect = ( "^/(.*)" => "http://%1/$1" )
}
Some call it "canonicalizing", others inexplicably call it "SEO", but (unlike the rest of the "SEO" homeopathy) it's easy to do and nearly always a good idea.
RewriteCond %{HTTP_HOST} ^173\.255\.233\.215
RewriteRule (.*) http://teknikim.com/$1 [R=301,L]