Suggestion: Redirect issues with multiple copies of a site on the same server #55
|
I have an environment with multiple copies of a site (staging, live) on the same server. I followed all the setup instructions, including setting wp-config constants for the Redis key prefixes and database numbers. Despite this, when multiple sites had Redis caching active, I had issues with the sites redirecting to each other when browsing or logging in to Wordpress. It turned out that the Wordpress salts (https://kinsta.com/knowledgebase/wordpress-salts/) were the same on all sites. I appreciate this might not be a bug in the plugin, more a Wordpress config thing -- but is perhaps worth mentioning in the setup instructions and/or FAQs? Browsing the web for reports of the redirects issue I found plenty, not all resolved. This particular issue could be a rare one but not easy to figure out. Thanks :) |
Replies: 2 comments
|
After setting the |
|
Thanks :) I did that.
|
After setting the
WP_REDIS_PREFIXfor each site you must flush the Redis Server if you it already contains contaminated data.