B
B
balanana2020-10-24 11:08:40
WordPress
balanana, 2020-10-24 11:08:40

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

1 answer(s)
E
EvgenyMorozov, 2020-10-24
@balanana

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 question

Ask a Question

731 491 924 answers to any question