Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

appspot.com url shows up in google search results instead of custom domain name

I have set up http://www.footballverdict.com and it's hosted on Google App Engine. Everything works fine. You can visit the custom domain without problems. For some reason when I do a search on Google for "football verdict", the results show startorsit.appspot.com/ask and startorsit.appspot.com/about. There is no footballverdict.com in sight for the main site! It's been at least two months since I hooked up the custom domain. The blog sub-domain does show up in the search results, but that's because it's not hosted on Google App Engine.

Does anyone know how to get the custom domain into the search results and remove the appspot.com sub-domain?

like image 845
HostedMetrics.com Avatar asked Jan 19 '23 19:01

HostedMetrics.com


2 Answers

The easiest way to handle this is to have your app detect if it's being requested on appspot.com, and if it is, send a 301 to your canonical domain. Search engines will pick up on this and start listing your canonical site instead.

like image 108
Nick Johnson Avatar answered May 21 '23 14:05

Nick Johnson


The answer? Canonical URLs.

Google Webmaster Tools has a great little blurb about it here, and Yoast has another one here.

I hope this gets you pointed in a good direction.

Best of Luck! ~Isaac

like image 40
Isaac Lewis Avatar answered May 21 '23 12:05

Isaac Lewis