I
I
Insom842019-06-24 12:32:21
htaccess
Insom84, 2019-06-24 12:32:21

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]

how can I fix it so that it redirects individually to a specific page, and not all pages with this parameter to one address?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question