D
D
Dmitry2016-07-14 16:38:18
htaccess
Dmitry, 2016-07-14 16:38:18

How to redirect via .htaccess?

Tell me how to arrange RewriteCond and RewriteRule so that when you enter
site/asd/m1/qweqwe, a redirect to
site/asd/m2/qweqwe is made?
only m1 changes to m2, instead of asd and qweqwe, of course, anything can be.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
I
IceJOKER, 2016-07-14
@dkvasov

RewriteRule (.*?)/m1/(.*?) /$1/m2/$2 [R=301]

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question