admin管理员组文章数量:1425888
0
I am pretty new in website and server stuff and i have a question:
I have an react app and it should be the main and only website I want to reach under www.example, and I want to use Wordpress just headless (wp db and wordpress REST API) but on the same server. Server is managed by Plesk.
As far as I understood, Wordpress has to be installed in my servers document root, e.g. /httpdocs/.
But when I want to reach my react app under www.example, I have to deploy the build folder content also into /httpdocs/, which interfers with wordpress. In this case if I go to www.example, I get the wordpress site.
When I have my react app in another folder, e.g. /github/build/, and set this folder my document root, the page is accessible under www.example, but wordpress is not reachable anymore (www.example/wp-login.php not found).
The only ugly way it seems for me it can work is if I deploy the build folder into the wordpress root directory, but then the react app is only acessible under www.example/build (only guessing).
Is there a way to make it work as wanted?
本文标签: multisiteHow to run react app and headless Wordpress and React App on same server (managed by plesk)
版权声明:本文标题:multisite - How to run react app and headless Wordpress and React App on same server (managed by plesk)? 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1745458303a2659205.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论