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/www.
The hosting is configured to reach the good folder when my-site is typed as an URL.
But all my wordpress site's pages have an URL like my-app.pro/my-site/www/my-page, and not my-site/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?
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/www.
The hosting is configured to reach the good folder when my-site is typed as an URL.
But all my wordpress site's pages have an URL like my-app.pro/my-site/www/my-page, and not my-site/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?
Share Improve this question edited Aug 30, 2019 at 14:56 Benoit Poux asked Aug 30, 2019 at 14:22 Benoit PouxBenoit Poux 12 bronze badges 8 | Show 3 more comments1 Answer
Reset to default 0I've had similar issues in the past, hosting two different sites with two domains on one host. Here are the two things that have helped me:
Update WordPress Settings
In the WordPress Admin Dashboard, go to Settings > General.
You'll notice that there's the WordPress Address (URL) and the Site Address (URL). These control where WordPress views the files and the address that the site is viewed at. Double check these. If they are not what you want, then try changing them.
Update Host Settings
Sometimes, to have two different domains on one host you'll have to configure an "Add-on" domain with your host. This usually involves specifying the folder for the second domain, and the problem should be fixed.
If that doesn't work
Here's the link to WordPress on what they recommend. Their solution involves changing the configuration files.
https://wordpress/support/article/giving-wordpress-its-own-directory/
https://my-site
I think? – Rup Commented Aug 30, 2019 at 16:16