M
M
multiscripter2016-06-24 00:44:44
htaccess
multiscripter, 2016-06-24 00:44:44

How to redirect from a folder to a subdomain?

Hi all.
The site is located in the folder ${DOCUMENT_ROOT}/folder1/folder2/name.ru/
When you go to this folder, you need to redirect to name.site.net
That is, when you enter the url site.net/folder1/folder2/name.ru/, there was a transition on name.site.net Tell me
how the rule should look like in .htaccess and where should I put it?
The subdomain name.site.net has already been added. When you navigate through it, the site in the name.ru/ folder loads normally.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
S
Sergey, 2016-06-24
@gangstarcj

Plain 301 Redirect

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question