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
  • Check your wp-config.php file for WP_SITEURL and/or WP_HOME being defined; these will override the content of your database if they're present. – Pat J Commented Feb 1, 2024 at 17:39
  • Thanks for the suggestion, @Pat J! But alas, there's no reference to either of those in the config file. :( – Adam Abrams Commented Feb 1, 2024 at 18:30
Add a comment  | 

1 Answer 1

Reset to default 0

Well, 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!

本文标签: