D
D
dienerie2022-03-31 10:55:57
URL Handling
dienerie, 2022-03-31 10:55:57

How to make a redirect from all subdirectories of a folder?

site.ru/promo/*

That is, site.ru/promo/primer/top/tatata.php
should redirect to site.ru/promo/

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Viktor Taran, 2022-03-31
@dienerie

RewriteRule ^promo/.+$ /promo/? [L,R=301]

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question