How to do a redirect URLs ending with specific characters?

Tell me how to use htaccess to do a redirect from URLs of the form
/shop/search&category=10
/shop/search?category=10
Generally ending on
category=10
On some other url
September 26th 19 at 06:12
1 answer
September 26th 19 at 06:14
RewriteRule .*?category=10 XXX.com
Yes, like theory it should work, but specifically in this example, does not want to work www.realshop.by/shop/search?category=10 - Kristian_Kuhlman commented on September 26th 19 at 06:17
RewriteRule ^.*category=10$ www.site.ru [R=301,L] - Layla.Auer commented on September 26th 19 at 06:20
the line above assumes that you have enabled the rewrite engine - Layla.Auer commented on September 26th 19 at 06:23
All-inclusive, but something is still there( - Kristian_Kuhlman commented on September 26th 19 at 06:26
yeah, if you just enter adsfasdf.com/category=10 then everything is OK, if chemto others that have not. sitting poking around che is not there. - Layla.Auer commented on September 26th 19 at 06:29
Something I spent a lot of time and decided to make a quick php - Kristian_Kuhlman commented on September 26th 19 at 06:32

Find more questions by tags ApachehtaccessProcessing URL