I plan to have 2 separate domain names pointing to the same Apache installation with WordPress multi-site.
I can set virtual hosts 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:
Options FollowSymLinks MultiViews
Require all granted
Redirect / https://www.example.com/
What is the best practice for redirecting the IP address when 2 domain names point to the same IP?
I thought about creating a generic
404 page and having that displayed when hitting the IP address. But would this hurt my SEO on both sites?
How do shared hosting companies redirect HTTP traffic based on an IP address? Do they point back to the parent company, or something else? Perhaps this is a non issue all together?
So just to be clear: what is the best practice for redirecting the IP address of a web server when it hosts multiple domain names?