Separate servers for www and non-www domain - wordpress

I have a site at example.com hosted on AWS. DNS is configured to resolve example.com to my AWS instance IP. I also have a separate WordPress site created that I would like at www.example.com.
It seems WordPress hosting allows me to host a site with them using a subdomain. For example, I created NS records for blog.example.com so any request to blog.example.com is handled by WordPress and the WordPress site is shown.
This allows example.com and blog.example.com to be completely separate, hosted by different servers.
However, WordPress does not allow for www.example.com to function the same way as blog.example.com. What is the reason for this?
Is there any way to keep example.com hosted on AWS and www.example.com hosted elsewhere?
I have already signed up with a couple of services trying to make this happen and would like to stop wasting money if it's not possible.

Related

Plesk WordPress Multisite Install with Non-www Domains

I'm trying to do something that's pretty straight-forward in cPanel, but I wish to use Plesk instead. I'd like to create a WordPress multi-site install and point various domains and sub-domains to it. Here are examples:
www.mymaindomain.com
test.mymaindomain.com
www.newdomain.com
multi.anotherdomain.com
In cPanel, it's pretty painless:
Create a WordPress multi-site install under www.mymaindomain.com
Point the domains to cPanel's IP address in DNS
Add sub-domains (e.g. test.mymaindomain.com) and addon domains (e.g. multi.anotherdomain.com) and point them to the folder of the install.
Within WordPress multi-site, add the new sites, 1 for each domain/subdomain pointed.
It's similar in Plesk. However, the complication comes when trying to point non-www domains that are not sub-domains of the main domain (e.g. multi.anotherdomain.com) to the site. Plesk doesn't have 'Addon' domains like cPanel. Instead it has 'Domain Aliases' where it forces you to use a www domain.
I'm not finding any good simple instructions for this in Plesk. Are there any?
If you know the differences between cPanel and Plesk, the answer is straight-forward. Basically, if you want to point a subdomain to a subscription (i.e. one group of domains) for a WordPress multi-site, then even if the main domain isn't pointing to the server, you still need to add it first, then create the subdomain after that and point it to the httpdocs folder of the main subscription domain.
Although it is an old question, I will answer this because the situation has not changed since then.
cPanel's "add-on domain" is the same thing with "alias domain" in Plesk, however, Plesk does not support adding an alias for subdomains. See this KB article: https://www.plesk.com/kb/support/how-to-add-an-alias-for-subdomain-in-plesk-for-linux/
In the same article they also provide two work arounds one of which involves only adding a top level domain as an alias to a subdomain. The second work around however doesn't have this limitation. You can add extra directives for Apache and nginx to Plesk configuration of that domain like;
For Apache:
ServerAlias subdomain.example.com
ServerAlias example.com
ServerAlias www.example.com
For nginx:
server_name subdomain.example.com
server_name example.com
server_name www.example.com
If you are using nginx as a proxy to Apache, then you will most probably need to do both. The downside is that you won't see anything about these aliases in any place of Plesk and nothing is configurable about them from the GUI.

Setting Up WordPress Multisite Domain Mapping in Plesk

Our intention is to create a multisite like www.example.com and than point other sites in that multisite installation
www.example2.com
www.example3.com
...
We have set up Wordpress multisite with subdirectories option and also activated Domain Mapping Plugin.
Than we created a child site via Multisite and in Domain Mapping Options we created a domain www.example2.com and conected it with child site via id.
In Plesk than we created a website for www.example2.com with no hosting option.
Also Both of domains www.example.com and www.example1.com are hosted in same server.
We are missing something any suggestion would be appreciated.
First you need create the website on wp multisite from network admin. This will be accessible at ww.example1.com/example2.
Then you need to go to admin of example2 admin and map the domain www.example2.com.
If the domain is pointing to the server where wordpress is (in your case should be as they are on the same place) the site should be available at www.example2.com

DNS_PROBE_FINISHED_NXDOMAIN Subdomain and Domain Issue

I have a basic wordpress website with a few simple plugins such as gravityforms etc. For the sake of this question the site has a domain of domain.com
To manage user input we have another system on a subdomain, sub.domain.com
Some users are intermittently receiving the following error 'DNS_PROBE_FINISHED_NXDOMAIN' whether that be on the domain or subdomain.
Is it possible that this issue is an issue on one of domain.com or sub.domain.com and the users browser shows errors with both purely because the urls have the same domain?
Add wildcard DNS on cpanel. You can create wildcard dns following instruction on the below.
http://www.webhostinghub.com/help/learn/cpanel/manage-domains/how-to-set-up-wildcard-subdomains

I need to repoint a Domain on a Names host to another server that runs my WordPress site?

I have a Domain host (JustHosts.com) that host my domain name:
mydomain.com
I have another server with a WordPress site on it which is accessed directly as:
mywordpress.com/wpsite1
I want this to be accessed via mydomain.com, so:
mydomain.com -> mywordpress.com/wpsite1
The URL should stay as mydomain.com, not go back to mywordpress.com/wpsite1.
I can add the following types of records:
A
CNAME
MX
TXT
SRV
AAAA
What should I do on my domain host to make this change?
Many thanks.
I could solve this in particular condition where we use subdomain to pointing to the WordPress site and the Wordpress site itself is installed on a host provider that is using cPanel.
Formerly I simply set CName on subdomain blog.mydomain.com to the subdomain where my Wordpress site is installed. Unfortunately this pointing was resulting a redirection like this:
http://blog.mydomain.com/cgi-sys/defaultwebpage.cgi
Searching for a solutiom then I found this documentation:
https://wordpress.org/plugins/wordpress-mu-domain-mapping/installation/
It is actually a documentation for a plugin to map any blog/site on a WordPressMU or WordPress 3.X network to an external domain. I didn't install the plugins I just marked that for cPanell users we need to put the mydomain.com as a parked domain in cPanel where the Wordpress site is installed.
So with the cPanel I uninstalled my WordPress and rearrange the installation step as below:
1. Put mydomain.com as a parked domain
2. Re install WordPress using blog.mydomain.com
Viola! The blog.mydomain.com is running the WordPress perfectly and stay in blog.mydomain.com without any error or redirection to other domain.

Wordpress Multisite stops old subdomains working

I followed the instructions for setting up Wordpress multisite using subdomains on a Mediatemple DV server with wildcard DNS and got it working fine, however, I had previously hosted subdomains setup but now Multisite stops these from working by defaulting to the multisite 'system'. How can I set up Multisite so I can choose which subdomains it uses and which ones for it to leave alone incase I need to setup a non-wordpress solution in these ones?
Please double check DNS records. The way I have my instances, is I use a wildcard on a CNAME pointing to my server (# or ip)
For subdomains that aren't apart of the "wp multisite network" I used A records pointing to the server ip. From there, those subdomains have to be parked properly. Say for instance, in WHM I create a cPanel account for subdomain.domain.com that roots to /home/subdomain/public_html - meanwhile domain.com cPanel accout roots to /home/domain/pubic_html - apache resolves both respectively.

Resources