带有 seo 的 opencart 多商店 url
opencart multistore with seo url
我将 oc 1.5.6.4 与 multistore 和 seo url 一起使用。现在我有域 domain.com 和 store1.domain.com,并启用了 seo url。我正在使用这个
RewriteRule ^(.)\?$ index.php?route= [L,QSA]
使 seo url 在 store1.domain.com 中发挥作用。
问题是现在我看不到我的 store1.domain.com 主页,它显示 "The page you requested cannot be found"。但是如果我去掉那个代码,seo url 就不能工作了。
那么我应该怎么做才能使 multistore 和 seo url 在不手动在 .htaccess 中添加新子域的情况下工作。谢谢
设置 SEO URL 和多商店配置
- 将 SEO 关键字添加到所有产品和类别(唯一关键字)。
- 打开 SEO URL - 系统>设置>服务器>使用 SEO URL。您只能在 DEFAULT 商店中获得此选项。
编辑 .htaccess 文件。
RewriteRule ^([^?]*) index.php?_route_= [L,QSA]
此外,请参阅以下线程
Enable-seo-friendly-urls-in-opencart
希望对你有所帮助。
我将 oc 1.5.6.4 与 multistore 和 seo url 一起使用。现在我有域 domain.com 和 store1.domain.com,并启用了 seo url。我正在使用这个
RewriteRule ^(.)\?$ index.php?route= [L,QSA]
使 seo url 在 store1.domain.com 中发挥作用。
问题是现在我看不到我的 store1.domain.com 主页,它显示 "The page you requested cannot be found"。但是如果我去掉那个代码,seo url 就不能工作了。
那么我应该怎么做才能使 multistore 和 seo url 在不手动在 .htaccess 中添加新子域的情况下工作。谢谢
设置 SEO URL 和多商店配置
- 将 SEO 关键字添加到所有产品和类别(唯一关键字)。
- 打开 SEO URL - 系统>设置>服务器>使用 SEO URL。您只能在 DEFAULT 商店中获得此选项。
编辑 .htaccess 文件。
RewriteRule ^([^?]*) index.php?_route_= [L,QSA]
此外,请参阅以下线程
Enable-seo-friendly-urls-in-opencart
希望对你有所帮助。