每次我启用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]
来进一步解释。当我禁用搜索引擎优化,我可以访问我的电缆类别例如: Philips>Hdmi等,然后如果我启用搜索引擎优化,当我试图访问Philips>hdmi时,我得到了所有的HDMI线,我卖在一个页面上。
谢谢!
发布于 2012-07-19 21:52:32
这听起来像是您在多个类别中使用相同的SEO关键字(hdmi)。这是不允许作为标准的。你可以查看this mod,它允许你在多个类别中拥有相同的关键字(例如,飞利浦> hdmi,三星> hdmi)
https://stackoverflow.com/questions/11561370
复制相似问题