A
A
AntonMuxa2018-06-21 11:32:38
htaccess
AntonMuxa, 2018-06-21 11:32:38

How to make a redirect to a subdomain from a domain folder?

how to do it as a Redirect to a folder for a subdomain through the RewriteRule only in reverse. From the domain folder, for example, domer/opt, make a redirect to a subdomain. Do I need to create htaccess in this folder.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
AntonMuxa, 2018-06-21
@AntonMuxa

added to htaccess the following RewriteRule ^opt/(.*)$ http://subdomain.domain.ru/$1 [R=301,L]

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question