Imin2016-09-15 13:58:49
Web development
Imin, 2016-09-15 13:58:49

2 domains, one mirror, how best to connect?

Tell me , there are 2 sites:
domen.com (main, files on it)
Through .htaccess, you can make
the domain in the browser not change when opening domen-2.com, but domen.com shows the files?
I mean, no 301 redirect so you don't redirect to another domain.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
Ilya, 2016-09-15

If you want the same content to be shown on two domains, then conditionally the DocumentRoot for both domains should be the same.
domain-2.com should be ServerAlias ​​for domain.com and no redirects should be written in htaccess.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question