I plan to have 2 TLD pointing to the same apache installation with wordpress multisite. I can set virtualhosts correctly for each domain, no problems. I can have both domains point to the same host, no worries.
Currently I have a redirect for all traffic hitting the web server IP address to my initial domain.
<VirtualHost *:80> <Directory "/share/Web/WordPress"> Options FollowSymLinks MultiViews AllowOverride All Require all granted </Directory> ServerName 220.127.116.11 Redirect / https://www.example.com/ </VirtualHost>
What is the best practice for redirecting the IP address when 2 TLD point to the same IP?
I would like to prevent someone doing an nslookup on the 2nd TLD, typing that in a browser and being redirected to the 1st TLD.
I thought about creating a generic 404 page and having that displayed when hitting the ip address. However I believe this will hurt my SOE on both TLD.