1 Comment
  1. 1. You might have hardcoded references to localhost in the DB. Using WP-CLI you can try a “wp db search localhost” to spot where those might be (other than home/siteurl options) and do a search replace or make other modifications to reference a relative path without the scheme and hostname, depending on where it is being set. It’s most likely hardcoding localhost in some wp_posts entries.

    2. Your haproxy config needs to pass a x-forwarded-proto https header to the backend so that WordPress doesn’t think it needs to redirect you from http to https. Sharing your haproxy config would be helpful.

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer