How do I remove legacy URLs that Google has decided to cache?
When we went live with our new site, we moved the old site to
legacy.example.com for our staff to be able to access the old site. I'm guessing robots.txt wasn't updated and as such, Google decided to cache it.
Our DNS has a wildcard redirect, so I think Google may still think that this site exists because navigating to
legacy.example.com will redirect the user back to our live page.
I would normally use robots.txt but
legacy.example.com doesn't actually exist anymore.
What options do I have? I have validated the property
legacy.example.com in the Google Search Console.
Do I need to change my robots.txt on my live site to somehow remove