I have a staging site where we do our work and show to clients. The site was created before I started and it wasn't set up with a
disallow / in robots.txt or a meta no-index before it was created, so some pages are showing up in a Google search.
Our staging site URL is formatted like this:
staging.sub.example.com. However, one of the links that is showing up in google search if formatted like:
staging.example.com/mypage. It's missing the "sub" part. Conversely, the other 5 URLs that appear in the Google search are showing up with the correct "sub" part.
Why did Google index the URL incorrectly for that one page?
To my knowledge,
staging.example.com/mypagewas never a valid URL, but somehow, Google is finding it and it's actually referencing the information that is on
How do I stop Google from displaying the page with the incorrect subdomain?