Answer the question
In order to leave comments, you need to log in
Wordpress + static frontend, how to properly place?
Good afternoon, did I understand correctly that in order to display data from WordPress in gatsby or gridsome, you need to have different domains or subdomains, you need to host WordPress on one, and a static project on the second? Is it possible to do something like this - mysite.ru - gatsby is loaded, mysite.ru/admin - wordpress is loaded, if so, how about?
Thanks
Answer the question
In order to leave comments, you need to log in
You presented everything correctly. Install WordPress in the folder example.com/wp/ -- here you will have a dynamic site. And the static will already be at the root of example.com.
Access the WordPress instance from React or Vue using the example.com/wp/wp-json/wp/v2/ API.
True, there is a problem - Server Side Rendering , or maybe not a problem.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question