如何在prestashop 1.7中的子域中设置多功能
我们将Domain.com作为主要域,其中包含一些不同的应用程序。
我们将prestashop.domain.com作为子域,它也是服务器public_html文件夹中根文件夹的子文件夹,并包含PrestAshop安装核心。
帮助下多家商店:
- 希望在Prestashop
- 的
Multistore
我们 由Prestashop自动完成。 检查以下检查: https:/https:/ /doc.prestashop.com/display/ps17/setting+a+shop's+s+space-space-menu-link-content ,
但无论如何对我来说都不起作用。我一直在尝试很多cpanel的东西。
它只能以这种方式工作:
- prestashop.domain.com/someshop
- prestashop.domain.com/anothershop
We have domain.com as the main domain with some different apps in it.
We have prestashop.domain.com as a subdomain which is also a subfolder of root folder in the server public_html folder and contains prestashop installation core.
We want to have multiple shops with the help of prestashop multistore in this way:
- someshop.domain.com
- anothershop.domain.com
Is it even possible?
Because in the documents it says it is possible and it is done automatically by prestashop.
Check this : https://doc.prestashop.com/display/PS17/Setting+a+shop's+URL#space-menu-link-content
But it is not working for me anyway. I have been trying a lot of cpanel stuff.
It only works in this way:
- prestashop.domain.com/someshop
- prestashop.domain.com/anothershop
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
在此类配置中,PrestAshop负责将请求路由到两个子域,并以唯一的 .htaccess 放置在根目录中,当然还有独特的安装。
因此,您必须确保配置CPANEL中的两个子域文档root to Prestashop居住的同一服务器物理路径。
然后,请确保将物理URI设置为“/”在多层配置中的两个商店,这应该可以解决问题。
in such configuration Prestashop is responsible to route requests to both subdomains with a unique .htaccess placed in root directory and , of course, a unique installation.
So you have to ensure to configure both subdomains document root in cPanel towards the same server physical path where Prestashop resides.
Then, make sure to set the physical URI to "/" for both shops in the multistore configuration, this should do the trick.