M
M
Mitya ToDaSyo2019-06-26 02:23:12
htaccess
Mitya ToDaSyo, 2019-06-26 02:23:12

How to make a universal address?

Honestly, I tried, I don’t understand how to unify this line, I want to get something like instead of site.ru, but as soon as I didn’t try, it doesn’t work
RewriteCond %{HTTP_HOST} ^sub\.site\.ru$ [NC]
https://sub.%{SERVER_NAME}%{REQUEST_URI}

Answer the question

In order to leave comments, you need to log in

1 answer(s)
W
wisgest, 2019-06-26
@dimastik1986

RewriteCond %{HTTP_HOST} ^sub\. [NC]
but "subdomains of subdomains" will also satisfy it. or but this is if the “root domain” is the second level ( ), and not the third, for example.
{2}

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question