There are 2 domains. On one - landing, on the second landing + site inside. It is necessary that when entering domain2, landing page (that is, the main one) was first displayed, and then the link will go to the internal domain1 domain.

How to do it with ServerAlias ​​so that the redirection is only internal links. That is all that after the domain2.com / ****

at the moment the config is like this

<VirtualHost домен1.local:80> DocumentRoot "\domains\lifedating.local\web" ServerName "lifedating.local" ServerAlias "lifedating.local/*" testdating.local/* 

    1 answer 1

    The correct apache config is approx. such:

    <VirtualHost lifedating.local:80> DocumentRoot "/www/domains/lifedating.local/web" ServerName lifedating.local ServerAlias testdating.local

    In DocumentRoot specify a put from the root. In windows - from the disk.

    Then the usual redirect in this process.