【问题标题】:Opencart: SEO URLs not working in the second storeOpencart:SEO URL 在第二家商店不起作用
【发布时间】:2013-07-16 06:41:42
【问题描述】:

我的默认商店是http://www.mydomain.com/store1

我的第二家店是http://store2.mydomain.com

在.htaccess 文件中,我有RewriteBase /store1/

在管理员 - Catalog > Information 中,“关于我们”页面设置为显示在两个商店中。

这个网址可以正常工作:http://www.mydomain.com/store1/about_us

但是此 URL 显示内部服务器错误:http://store2.mydomain.com/about_us

这是因为默认存储安装在文件夹中(/store1/)而不是根目录中吗?有没有办法解决这个问题?

【问题讨论】:

    标签: .htaccess opencart


    【解决方案1】:

    是的,这是由 RewriteBase 设置引起的。只需从您的 .htaccess 文件中删除 RewriteBase /store1 行,就可以修复它。大多数网站都能够猜出正确的RewriteBase,因此没有必要。如果这不起作用,您可能想尝试this solution

    【讨论】:

      猜你喜欢
      • 2016-12-16
      • 2021-11-21
      • 2012-08-21
      • 2020-02-10
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2017-11-19
      • 1970-01-01
      相关资源
      最近更新 更多