Hello guys!
Fantastic job, congratulations.
I have refactored my first project and everything has gone great, until transferring the domain dns to Vercel, when doing so, the connection with the rest API will be lost.
It was done like this:
- I have created a subdomain wp.mydomain.com on the php server
- I have indicated to WordPress that from now on the url of the project is there.
- I have created an .htaccess in wp.mydomain.com with the snippet provided by @christianoliveira.
- In the state.source of my theme in frontity.settings, I have created the following:
url: “https://wp.mydomain.com”
api: “https://wp.mydomain.com/wp-json” - These are the data:
Repository: https://github.com/juanlcoto/adituum-app
Url wp rest api: https://wp.adituum.com/wp-json
I’m looking forward to starting to refactor all my projects, and I just need to know where I’m failing.
Thanks in advance.