We have been searching Google for days for a solution but we cannot find a good document for direction.
We need to have two or 3 domains to point to the same portal in WordPress. We have done this kind of setups numerous times in IIS and ASP.net sites so I am sure there is a simple solution that we cannot find because we are new to WP. I know this is not SEO - but We do need to point to certain products with an SEO domain name like myproductname.com
Furthermore, we are not sure if it is a WordPress problem or if it is the way Plesk works in 1and1 virtual server. So please bear with us.
Here is what we did:-
Created a WordPress site domain1.com and all works perfect with one domain.
In parallels Plesk Panel created a domain alias domain2.com and it points to the same IP address
Synchronize DNS zone with the primary domain This DNS server acts as a master name server for this DNS zone.
Mail >> Mail service is switched on for the domain. mail.domain1.com. used as mail server.
Web >> Domain has Web hosting on IP address 74.111.111.111
Java Web applications >>> Java application service (Tomcat) is not installed.
In WordPress 3.1 we setup the network admin
define( 'MULTISITE', true );
define( 'SUBDOMAIN_INSTALL', true );
$base = '/';
define( 'DOMAIN_CURRENT_SITE', 'domain1.com' );
define( 'PATH_CURRENT_SITE', '/' );
define( 'SITE_ID_CURRENT_SITE', 1 );
define( 'BLOG_ID_CURRENT_SITE', 1 );
Also
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
# uploaded files
RewriteRule ^files/(.+) wp-includes/ms-files.php?file=$1 [L]
RewriteCond %{REQUEST_FILENAME} -f [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^ - [L]
RewriteRule . index.php [L]
But what we have now is
http://domain2.com >> goes to >> http://domain1.com/wp-signup.php?new=edenaromata.com
However,
What we have for example - http://domain1.com/category/saffron-recipes/ We also need for the second domain to go to same page >> http://domain2.com/category/saffron-recipes/
I am fairly sure we have not configured it right. If I was doing it in a windows environment >> I would have to add domain1 and domain2 to the same portal in IIS – then in which ever app I am using, DNN, or any other ASP.net app, I would have to add both domains so the app also recognizes them. In this environment I am a little naive.
If you see anything we have done wrong or missed out please let us know. I thank you in advance for taking a look.
Sal