Answer the question
In order to leave comments, you need to log in
Setting up 301 redirects in htaccess Opencart - how to make it work?
CNC is configured on the site (standard Opencart), however, the old urls of this kind: zhylety?product_id=61
continue to work, now they work the same way. zhylety/zhiletprofi16
If you write a 301 redirect:
Redirect 301 /index.php?route=product/product&path=57&product_id=61 http://site.ru/zhylety/zhiletprofi16
Redirect 301 /zhylety?product_id=61 http://site.ru/zhylety/zhiletprofi16
Answer the question
In order to leave comments, you need to log in
get request is not part of the url
# 301 --- http://site.ru/index.php?route=product/product&path=57&product_id=61 => http://site.ru/zhylety/zhiletprofi16
RewriteCond %{QUERY_STRING} (^|&)route\=product/product($|&)
RewriteCond %{QUERY_STRING} (^|&)path\=57($|&)
RewriteCond %{QUERY_STRING} (^|&)product_id\=61($|&)
RewriteRule ^index\.php$ /zhylety/zhiletprofi16? [L,R=301]
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question