How to make a rule for CNC?

Hello!
Please help!

there are references of the form
site.ru/article/
site.ru/article/tut-statya/

here it is necessary to write a rule that was a 301 redirect with
site.ru/article/ -> article.site.ru
site.ru/article/tut-statya/ -> article.site.ru/tut-statya

Thank you
July 9th 19 at 13:48
1 answer
July 9th 19 at 13:50
Redirect 301 /article/ http://article.site.ru
Redirect 301 /article/tut-statya/ http://article.site.ru/tut-statya

Find more questions by tags htaccessProcessing URL