N
N
Nikita Souvel2017-09-17 14:14:00
PHP
Nikita Souvel, 2017-09-17 14:14:00

How to redirect from a site to a subdomain?

Tell me, what rule can be added to redirect: example.com/en/anything =
en.example.com/anything
to completely transfer another version of the site to a subdomain. Be sure to give the code 301.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vladimir Skibin, 2017-09-17
@megafax

RewriteRule ^en/(.*)$ en.example.com/$1 [L,R=301]
Right?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question