D
D
Denis Klepko2017-06-09 12:16:25
1C-Bitrix
Denis Klepko, 2017-06-09 12:16:25

How to trim url at the end?

Hello!
There is a page
pkm-perm.ru/catalog/teplovoe-oborudovanie/teplovye-pushki-elektricheskie/filter/clear/apply/
When switching, you need to remove "/filter/clear/apply/". How to make a redirect?
I tried this construction RewriteRule (.*?)/filter(.*) $1$2
Doesn't help.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexey Emelyanov, 2017-06-09
@gaz12

RewriteRule ^(.+)filter/clear/apply/$ /$1 [L,R=301]

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question