每次我启用seo重写时,它都会标记我的一个类别并将它们链接到不正确的页面。
我正在使用的hta文件。
# 1.To use URL Alias you need to be running apache with mod_rewrite enabled.
# 2. In your opencart directory rename htaccess.txt to .htaccess.
# For any support issues please visit: http://www.opencart.com
Options +FollowSymlinks
# Prevent Directoy listing
Options -Indexes
# SEO URL Settings
RewriteEngine On
# If your opencart installation does not run on the main web folder make sure you folder it does run in ie. / becomes /shop/
RewriteBase /
RewriteRule sitemap.xml /index.php?route=feed/google_sitemap
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^([^?]*) index.php?_route_=$1 [L,QSA]
进一步解释。当我禁用搜索引擎优化,我可以访问我的电缆类别,如:飞利浦>HDMI等,然后如果我启用搜索引擎优化,当试图访问飞利浦>HDMI我得到所有的HDMI电缆,我出售的一页。
谢谢!
最佳答案
这听起来像你在使用同一个搜索引擎优化关键字(hdmi)多个类别。这是不允许的标准。您可以查看this mod,它允许您对多个类别使用相同的关键字(即飞利浦>HDMI、三星>HDMI)
关于php - Opencart SEO打破类别直接,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/11561370/