Answer the question
In order to leave comments, you need to log in
Dynamic variable in .htaccess?
The host has a static redirect from the subdomain to the backserver at 1.1.1.1
<IfModule mod_rewrite.c>
RewriteCond %{HTTP_HOST} ^subdomen.domen.com$ [NC]
RewriteRule (.*) 1.1.1.1 [L,R=301,QSA]
</IfModule>
Answer the question
In order to leave comments, you need to log in
Your solution is strange in itself, back or it must have a static IP or DNS, even if technical.
The third option is clearly crutches.
Yes, in bash it will be one line, but this is a crutch, moreover, some kind of horse.
Can you solve the problem with back servers.
If this is something serious, there is a dns binding,
if not, then why would they change the IP?
if this is homemade, pay 100 rubles a month for an IP.
believe the crutch is not worth it.
Describe in more detail the reason why backs change, whether you have access to them, whether there is an API and how you collect to track their dynamic IPs, even in theory.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question