Welcome to WebmasterWorld Guest from 23.22.140.143

Message Too Old, No Replies

Temporary URL indexed in Google

     
5:47 pm on Mar 3, 2014 (gmt 0)

Full Member

5+ Year Member

joined:June 26, 2008
posts:229
votes: 2


Hello, after I changed my host I saw my temporal URL that looks like this IP/~username is indexed for some pages. What can I do to immediately fix this so it does not cause any SEO problems?
11:08 pm on Mar 3, 2014 (gmt 0)

Administrator

WebmasterWorld Administrator phranque is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month

joined:Aug 10, 2004
posts:10542
votes: 8


you need to add a hostname canonicalization redirect to your configuration.

if your canonical hostname is http://www.example.com then any requests for a non-canonical hostname (including IP addresses or example.com or foo.example.com or example.yourwebhost.com or https:, etc) must be redirected with a 301 status code to http://www.example.com

what type of server are you using?
12:46 am on Mar 4, 2014 (gmt 0)

Senior Member from US 

WebmasterWorld Senior Member lucy24 is a WebmasterWorld Top Contributor of All Time Top Contributors Of The Month

joined:Apr 9, 2011
posts:12708
votes: 244


This doesn't sound like a hostname. Or rather, not hostname alone.

IP/~username is indexed for some pages


Do you mean:
IP/~username/pagename.html
IP/~username/otherpage.html
IP/~username/thirdpage.html
?

Yuk. Can you still reach the pages that way? If so, you'll need a global redirect, something like (assuming Apache)
RewriteRule ^~username/(.*) http://www.example.com/$1 [R=301,L]


If the IP/~username form no longer works, you may prefer to let the server hand out a 404 and let everything die a natural death.

:: thinking that "temporal" is pretty funny, but the thread title should probably say "temporary" ::
1:42 am on Mar 4, 2014 (gmt 0)

Administrator

WebmasterWorld Administrator phranque is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month

joined:Aug 10, 2004
posts:10542
votes: 8


Or rather, not hostname alone.

IP/~username is indexed for some pages

oops - i missed that part...
3:21 am on Mar 4, 2014 (gmt 0)

Senior Member

WebmasterWorld Senior Member Top Contributors Of The Month

joined:July 19, 2013
posts:1097
votes: 0


It's cool phranque, I thought you had the right answer too when I read your post, but Lucy24's got it -- Of course [guessing much like yours] my temporal lobe could be about ready to shut down right now, so I can barely even type, never-mind being able to talk [lol]
4:08 am on Mar 4, 2014 (gmt 0)

Moderator This Forum from US 

WebmasterWorld Administrator robert_charlton is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month

joined:Nov 11, 2000
posts:11314
votes: 165


Mod's note: In deference to long term memory, I've changed the thread title from "Temporal URL indexed in Google" to "Temporary URL indexed in Google".