• Problem occurred on clean installation of WordPress v5.3.2. No plugins.

    I am developing site with headless WordPress and decoupled frontend. Both live on its own domain and frontend retrieves data from WordPress trough wp REST API. So I defined in wp-config.php different WP_SITEURL and WP_HOME.

    
    define('WP_SITEURL', 'http://localhost:8069');
    define('WP_HOME',    'http://localhost:8070');
    

    At the first glance everything looked fine. Posts permalinks lead to WP_HOME address as expected. REST API is under WP_SITEURL as it is supposed to be.

    But one thing sucks. Why internal WordPress requests lead toward WP_HOME url? So it is not possible for example save post. What am I missing?

    See also following screenshot with problem. https://ibb.co/QPw0Bxh

    • This topic was modified 5 years, 11 months ago by vavra7.
Viewing 13 replies - 1 through 13 (of 13 total)
Viewing 13 replies - 1 through 13 (of 13 total)

The topic ‘different WP_SITEURL and WP_HOME – internal requests’ is closed to new replies.