I have purchased a domain from godaddy( mentioning here as xyz.com ). I have hosted my website on aws using elasticbeanstalk which has generated a cname (mentioning here as abc.elasticbeanstalk.com).
Now in godaddy I have done 2 configurations:
1. Forward xyz.com to www.xyz.com
2. Mapped cname www to abc.elasticbeanstalk.com
xyz.com & www.xyz.com opens properly in browser and everything seems to be fine.
The problem is search engines are displaying abc.elasticbeanstalk.com in search results for keywords related to xyz.com.
I want to keep abc.elasticbeanstalk.com hidden from all these search engine crawlers. Has anyone faced this problem before?
Best Answer
You can set a canonical URL for the site:
Another possible solution is setting a custom Apache configuration to redirect visitors hitting the EB domain. This requires a custom AMI for your EB installation.