WP Multisite – Additional subdomain on the site for API purposes

I have resovled it myself. I have enabled sunrise in wp-config. Then add a script to sunrise.php to override HTTP_HOST. I made it dynamic since we have many websites. When you visit api.domainxy.com it automatically shows you domainxy.com. <?php $re=”/(?:api\.)(.*)/m”; $str = $_SERVER[‘HTTP_HOST’]; preg_match_all($re, $str, $matches, PREG_SET_ORDER, 0); if ($matches && $matches[0][1] != “”) { … Read more

Cloudflare and SSL breaks wordpress – Mixed Content & Unable to use Admin

You need to install these two plugins. CloudFlare Flexible SSL – https://wordpress.org/plugins/cloudflare-flexible-ssl/ Really Simple SSL- https://wordpress.org/plugins/really-simple-ssl/ After both the plugins are installed and activated, you will get a message at the top of your dashboard to activate SSL. Click on activate and you are done. You will be logged out. Because your domain has changed … Read more

Error trying to publish immediately. Post status = future (Missed schedule error)

So the issue in this case was that PHP wasn’t displaying correct UTC Time. Thanks to @TomJNowell for pointing me in the right way. It seems to be a bug/error in some Plesk installation: https://talk.plesk.com/threads/utc-time-issue-plesk-php-7-3-7-4-on-centos7.356169/ To solve the issue we have replaced the UTC file usr/share/zoneinfo/UTC with another copy from another server. After that, UTC … Read more