admin管理员组文章数量:1414863
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/
本文标签: Why my wordpress site URL does not begin with my domain
版权声明:本文标题:Why my wordpress site URL does not begin with my domain? 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1745197516a2647213.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
https://my-site
I think? – Rup Commented Aug 30, 2019 at 16:16