I'm hosting a web app on my-app.pro, and it's the main domain for the hosting. The containing folder is /home/my-app.pro/www.
I'm using a framework, and it does the rewriting job, so all my pages are reachable at my-app.pro/pages-names/etc
Now I'm publishing another website, a wordpress one, with the Divi Theme, on the same hosting. I put it in this folder /home/my-app.pro/www/my-site.com/www.
The hosting is configured to reach the good folder when my-site.com is typed as an URL.
But all my wordpress site's pages have an URL like my-app.pro/my-site.com/www/my-page, and not my-site.com/my-page as needed (except for the main page, which is working).
How do I change this? Is it in the database directly? Or is it a configuration issue?