A
A
AndRussia2020-04-25 12:35:46
htaccess
AndRussia, 2020-04-25 12:35:46

Subdomain on .htaccess?

Hello, how can I make a subdomain on .htaccess?
For example, turn domain.ru/admin into admin.domain.ru ?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Viktor Taran, 2020-04-25
@AndRussia

can be redirected. But this domain cannot be created.

RewriteCond %{HTTP_HOST} ^domain\.ru$
RewriteRule ^admin$ http://admin.domain.ru/? [L,R=301]

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question