i have a (php) wordpress site on let's say domain1.com
and i bought another domain and pointed it to the same host as domain1.com
...
So now, i have that one hosting account which serves the wordpress site and when i put domain1.com
in the address bar, i get that page. When i put domain2.com
, I also get that same page (becouse I redirected domain2.com
to point to my hosting account), and that's fine. But how can I have 2 domains point to the same host, and keep the domain prefix user inputed.. so that when user inputs domain1.com/index.php
or domain2.com/index.php
, he would be served the same page from the server, but the user would have a different address in his address bar?
I hope my question is clear.
Thank you for your time...