P
P
Programa_12020-12-08 16:29:46
URL Handling
Programa_1, 2020-12-08 16:29:46

How to redirect a directory?

Any url from the page of the /catalog section can be easily opened, and in terms of content it will also duplicate the
site.rf/catalog section.
Example: site.rf/catalog/vsem-privet = site.rf/catalog

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
dodo512, 2020-12-08
@Programa_1

RedirectMatch 301 ^/(catalog)/ /$1
Or
RewriteRule ^(catalog)/ /$1 [R=301,L]

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question