• Instead of using multisite, I’ve created multiple subdomains under one account with my web host. I’ve installed a separate WordPress instance for each subdomain.

    I want to redirect different domains to different subdomains, but keep the top-level domain visible. Also, I want to ensure that this has minimal or no impact on SEO rankings.

    Example:

    domain1.com => sub1.example.com (user sees domain1.com as URL)
    domain2.com => sub2.example.com (user sees domain2.com as URL)
    domain3.com => sub3.example.com (user sees domain3.com as URL)
    etc.

    It seems to me that this can be solved using CNAME or ALIAS records in DNS, but I can’t get it to work.

    What’s the best solution? If using DNS, what are the correct settings?

    • This topic was modified 1 week, 5 days ago by ralphx.
    • This topic was modified 1 week, 5 days ago by ralphx.
Viewing 1 replies (of 1 total)
  • Moderator bcworkz

    (@bcworkz)

    If you wish to mask the subdomains and have users see only the requested primary domains, I don’t think that can be managed with DNS. But DNS records are not my strong suit, I could be wrong. I’m unsure why you’re bothering with subdomains if no one should see them anyway. Why not directly map primary domain requests straight to the appropriate WP sub-directory? For example, go from domain2.com directly to the server’s /public_html/domain2/ WP installation. This is normally how we manage multiple domain name sites in a single hosting account. Subdomains would serve no purpose AFAICT.

    In DNS you map the domain name to your server’s IP as usual. In your hosting account, you map that domain to the appropriate subdirectory. This is managed through VritualHost, but most hosting accounts provide a UI for this, you don’t directly add VirtualHost directives. It’s also possible to redirect certain domain requests to specific sub-directories, but IMO VirtualHost is the better approach.

Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this topic.