I have more than one (4 to be exact) domains and only one server host with same ip. How I can run all my domains from same server. All websites are wordpress sites.
migrated from wordpress.stackexchange.com Feb 14 '12 at 18:48
If you are running Apache on your web server then you should use Name-Based Virtual Hosting, which is explained in the Apache Documentation.
I use the following code in the
Basically this redirects any domain that isn't
This way you avoid any crossdomain violations (with embedded fonts for example), all your sites are accessible from all domains but you only have a single root domain so far as users, bookmarks and search engines are concerned.
You may also want to read this google webmaster blog on canonical urls.