I have a site, let's call it resources.mycompany.ca - and I just set up staging for it at resources-staging.mycompany.ca .
The staging site works fine if I try to visit any specific URL (i.e. resources-staging.mycompany.ca/something). But if I try to visit the top-level URL, resources-staging.mycompany.ca/ , I'm taken to the homepage of a completely different site-in-progress, staging.mycompany.ca .
I've checked the "Site Address" and "WordPress Address" settings and they're correct, they both say "resources-staging.company.ca". I've looked at .htaccess, nothing funny there. I've checked Permalinks and re-saved. There's no redirects of any sort set up anywhere.
My only thought is that my use of "staging" preceded by a dash violated some WordPress or hosting rule... or caused it to be interpreted as just "staging", not "resources-staging" (which is essentially what's happening!). But to test this would be non-trivial (setting up a different subdomain, which is done by our IT company) so I thought I'd ask here first.
Thanks to anyone who can suggest anything!
wp-config.php
file forWP_SITEURL
and/orWP_HOME
being defined; these will override the content of your database if they're present.