K
K
Kostya Tester2019-11-02 21:25:22
htaccess
Kostya Tester, 2019-11-02 21:25:22

How to make a redirect with a slash?

Hey guys, help implement 301 redirect.
There are a large number of pages of this type:
https://test.ru/kategory/nazvanie/
formula RewriteRule ^kategory/(.*)$ https://test.ru/kategory-gorod/$1 [R=301,L]
https ://test.ru/kategory/nazvanie/ so the redirect does not work,
but this is how it works https://test.ru/kategory/nazvanie without a slash

I need the first option with a slash to work.

Submit the formula. Thanks in advance.

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