direct some pages to the homepage of opencart.
For examle:
https://mywebsitenamehere.com/index.php?route=product/manufacturer
301 redirect to:
https://mywebsitenamehere.com/
I would usually add something like this:
Redirect 301 /index.php?route=product/manufacturer https://mywebsitenamehere.com/
Snippet of my .htaccess:
# 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=extension/feed/google_sitemap [L]
RewriteRule ^googlebase.xml$ index.php?route=extension/feed/google_base [L]
RewriteRule ^system/storage/(.*) index.php?route=error/not_found [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]
Thank you!!
question from:
https://stackoverflow.com/questions/65844897/301-redirect-of-pages-not-working-opencart 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…