I am self-taught in wp, and I didn’t find much information on the web about this specifically: I have to create subdomains and navigate through them and also on the domain. Come and go in a “natural” way.
I have created this:
subdomain1. domain.com
subdomain2. domain.com
but suppose we want to go from subdomain1 to subdomain2, the problem is that it does not take me to subdomain2.domain.com but to domain.com/subdomain2 (it automatically transforms it into a subfolder).
In fact, if because of that I want to return from /subdomian2 to subdomain1, .domian.com no longer allows me, since it takes me to the /subdomain1 subfolder (not to my subdomian).
What am I doing so wrong?
[ad_2]
It sounds like you’re encountering a common issue with setting up subdomains in WordPress. When you create subdomains like subdomain1.domain.com and subdomain2.domain.com, but they’re being treated as subfolders instead, it’s usually a configuration problem with your server or WordPress settings.
To fix this, you’ll want to check your WordPress site’s settings and your server’s configuration. Make sure your DNS records are correctly pointing to the subdomains, and check your WordPress settings to ensure it’s recognizing them as separate sites.
Additionally, you may need to adjust your server’s configuration, particularly if you’re using Apache or Nginx. This might involve adding or modifying virtual host configurations to properly handle the subdomains.
You should set up virtual hosting with each site in it’s own path.
/var/www/main-domain
/var/www/sub1-domain
/var/www/sub2-domain
/var/www/aunt-becky-blog