S
S
Sergey2016-08-29 11:38:35
Apache HTTP Server
Sergey, 2016-08-29 11:38:35

How to make a 301 in htaccess?

Good afternoon!
The crux of the matter is that there are 2 domains site.ru and sub.site.ru so that when site.ru is requested, index.html opens and the entire main project opens on sub.site.ru, in other words, the main site moves to the sub domain and on the domain there will be a one-pager, how to implement this?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
V
Viktor Taran, 2016-08-29
@shambler81

you translate the site,
you create a one-pager, what's wrong with that?
You create the second site you transfer the folder there.
On the old lie down 1 file.

S
Sergey, 2016-08-29
@mrmoney

when accessing the site.ru domain, the redirect should be to sub.site.ru

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question