Answer the question
In order to leave comments, you need to log in
Redirect without parameters in the url (the question is still relevant!)?
Hey! I have
links
like
:
site.ru/shop/vzroslaya_odezhda/?PAGEN_1=1&SIZEN_1=30
site.ru/shop/vzroslaya_odezhda/?SIZEN_1=30 shop/vzroslaya_odezhda/
tried all the options that are described in the open spaces, but nothing works, maybe I make a mistake somewhere. Please tell me how to implement? Bitrix site. Thank you.
this code works, but this way it redirects all pages that contain PAGEN_1=1&SIZEN_1=30 to /shop/vzroslaya_odezhda/ and these also site.ru/shop/ detskaya_odezhda /?PAGEN_1=1&SIZEN_1=30
Options +FollowSymLinks
RewriteEngine on
RewriteCond %{QUERY_STRING} PAGEN_1=1&SIZEN_1=30
RewriteRule ^(.*)$ /shop/vzroslaya_odezhda/? [R=301,L]
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question