Headless WordPress – Issue with plugin path
Working on my first decoupled site. Backend is handled by WordPress and lives on the subdomain admin.mydomain.com
and the frontend lives at mydomain.com
.
The first issue I saw with the headless approach, was that all permalinks referred to admin.mydomain.com
. I wanted to change that so that the backend referenced to my frontend.
So I changed my config from:
WP_HOME='http://admin.mydomain.test'
WP_SITEURL='http://admin.domain.test/wp'
to:
WP_HOME='http://mydomain.test'
WP_SITEURL='http://admin.domain.test/wp'
which sorted my issue with the permalinks, but now I'm getting console errors on the WP dashboard because the plugins can't find the resources they need, for example ACF:
index.php:63 GET http://mydomain.test/app/plugins/advanced-custom-fields-pro/assets/css/acf-global.css?ver=5.8.4 net::ERR_NAME_NOT_RESOLVED
What would be the proper course of action to fix this?