我使用的是opencart seo網址,它們工作正常。問題是我也可以訪問舊網址,導致重複的內容。htaccess - 如何將舊的網址重定向到新的漂亮的網址?
例子:
我的新的SEO鏈接: http://site.com/blue-widgets
的問題是,我可以過訪問舊的,我害怕讓通過搜索enghines有重複處罰內容: http://site.com/index.php?route=product/category&path=113
RewriteBase/
RewriteRule ^sitemap.xml$ index.php?route=feed/google_sitemap [L]
RewriteRule ^googlebase.xml$ index.php?route=feed/google_base [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} !.*\.(ico|gif|jpg|jpeg|png|js|css)
RewriteRule ^([^?]*) index.php?_route_=$1 [L,QSA]
檢查我的編輯答案 - 谷歌不會懲罰Opencart的產品頁面。 – shadyyx