admin管理员组文章数量:1125554
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-stagingpany.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!
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!
Share Improve this question edited Feb 1, 2024 at 18:31 Adam Abrams asked Jan 31, 2024 at 23:08 Adam AbramsAdam Abrams 151 silver badge9 bronze badges 2 |1 Answer
Reset to default 0Well, like many things it was just a matter of playing the waiting game. The main URL now works fine. Just needed to wait a few days, I guess!
本文标签:
版权声明:本文标题:subdomains - Top-level staging-site URL redirects to a different site 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1736662558a1946489.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
wp-config.php
file forWP_SITEURL
and/orWP_HOME
being defined; these will override the content of your database if they're present. – Pat J Commented Feb 1, 2024 at 17:39