404 When WP URL and Site URL are Different
-
Hi there, I have a WordPress install where WordPress is installed in a folder named
/cms
and there is a custom content folder in the root named/content
.On the settings screen I then leave the WordPress Address (URL) setting to
domain.com/cms
and set the Site Address (URL) todomain.com/
so that the CMS part is not in the address.It would appear that this is preventing the calls to the REST API from working. For example if I do a get request to this URL I get a 404.
https://domain.com/cms/wp-json/wp/v2/posts
However if I make both the WordPress address (URL) and the Site Address (URL) the same like this:
https://domain.com/cms
It works fine like above. Is this normal or a bug?
- The topic ‘404 When WP URL and Site URL are Different’ is closed to new replies.