• 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 month, 1 week ago by ralphx.
    • This topic was modified 1 month, 1 week ago by ralphx.
Viewing 3 replies - 1 through 3 (of 3 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.

    christylam

    (@christylam)

    Here’s how to redirect multiple domains to different subdomains while keeping the top-level domain visible and maintaining your SEO rankings:Using CNAME Records

    1. Log in to your DNS provider’s control panel: This could be your domain registrar, web hosting provider, or a DNS service.
    2. Find the DNS management section: Look for the section where you can manage DNS records for your domain.
    3. Create a new CNAME record: Enter the domain you want to redirect (e.g., domain1.com) in the hostname field.
    4. Set the CNAME value: Enter the subdomain you want to redirect to (e.g., sub1.example.com).
    5. Save the changes: Allow time for DNS propagation, which can take anywhere from a few minutes to 48 hours.

    Using ALIAS Records

    1. Log in to your DNS provider’s control panel: Similar to the CNAME method, access the DNS management section.
    2. Create a new ALIAS record: Enter the domain you want to redirect (e.g., domain1.com) in the hostname field.
    3. Set the ALIAS value: Enter the subdomain you want to redirect to (e.g., sub1.example.com).
    4. Save the changes: Allow time for DNS propagation.

    Additional Tips

    • 301 Redirects: Ensure you set up 301 (Permanent Redirect) to maintain SEO rankings.
    • Test the Setup: Use online tools to verify that the redirects are working correctly.

    Feel free to visit my website for more tips and tricks related to your food niche!

    Here’s how to redirect multiple domains to different subdomains while keeping the top-level domain visible and maintaining your SEO rankings:Using CNAME Records

    1. Log in to your DNS provider’s control panel: This could be your domain registrar, web hosting provider, or a DNS service.
    2. Find the DNS management section: Look for the section where you can manage DNS records for your domain.
    3. Create a new CNAME record: Enter the domain you want to redirect (e.g.,?domain1.com) in the hostname field.
    4. Set the CNAME value: Enter the subdomain you want to redirect to (e.g.,?sub1.example.com).
    5. Save the changes: Allow time for DNS propagation, which can take anywhere from a few minutes to 48 hours.

    Using ALIAS Records

    1. Log in to your DNS provider’s control panel: Similar to the CNAME method, access the DNS management section.
    2. Create a new ALIAS record: Enter the domain you want to redirect (e.g.,?domain1.com) in the hostname field.
    3. Set the ALIAS value: Enter the subdomain you want to redirect to (e.g.,?sub1.example.com).
    4. Save the changes: Allow time for DNS propagation.

    Additional Tips

    • 301 Redirects: Ensure you set up 301 (Permanent Redirect) to maintain SEO rankings.
    • Test the Setup: Use online tools to verify that the redirects are working correctly.

    You can also visit my website based of food niche.

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