如何在prestashop 1.7中的子域中设置多功能

发布于 2025-02-07 07:51:28 字数 651 浏览 2 评论 0原文

我们将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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

維他命╮ 2025-02-14 07:51:29

在此类配置中,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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文