每次我启用 SEO Rewrite 时,它都会标记我的一个类别并将它们链接到错误的页面。
我当前使用的 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]
进一步解释。当我禁用 SEO 时,我可以按类别访问我的电缆,例如:Philips>Hdmi 等然后如果我启用 Seo,当我尝试访问 Philips>hdmi 时,我会在一页上获得我出售的所有 hdmi 电缆。
谢谢!