• Good Day!
    I’m having trouble getting or understanding Domain mapping in Multisite!
    I have 4 domains which all share on virtual host file and point to the same directory.
    abc.com, https://www.abc.com, xyz.com, https://www.xyz.com

    I have abc.com setup as the Main Site, I then created a second site wwwabc.abc.com and then edited the site url and changed it to https://www.abc.com and pointed this to the main url of abc.com on the edit screen info tab and this site points correctly to the main site.
    But, when I create xyz.abc.com and edit it and point the url to abc.com it defaults to a different page other than the home page. Why does this site not work like the second subdomain site?

    Tony

    • This topic was modified 5 years, 3 months ago by urthllc.
Viewing 6 replies - 1 through 6 (of 6 total)
  • Normally the www is a well-known service name so that would point to whatever web server is at the domain. Since that’s the accepted usage I wouldn’t count on anything doing that different unless I’d have written the code to ’cause that’… and I doubt I’d ever do that without good cause since it would be very non-standard.

    The xyz is not a well-known service so it would be treated as a subdomain.

    On Linux/Apache boxen, the htaccess file does a bit of this with the built-in WordPress rewrite engine getting the final vote.

    Thread Starter urthllc

    (@urthllc)

    So are you saying that it is not possible?
    The xyz is actually a long form of abc which is why I would like them pointing to the same directory.

    I never say anything is ‘impossible with WordPress’.

    I’d expect you could create a subdomain site called xyz.abc.com. That should be easy enough but it is going to point to a subdomain site called xyz.abc.com. There are ways to then cause xyz.abc.com to redirect to abc.com.

    What I can’t understand is why you would want to do that…

    Unless you have discovered some ability Native WordPress Multisite has that I don’t know about yet, then there is no ‘redirect’ in the sites editor itself but it’s possible I’m wrong in that.

    If you wish to redirect a subdomain to a different site then you might look at your hosting control panel to do that or you might do that in htaccess.

    Some domain registrars offer redirections in their DNS configurations.

    You can also munge the headers of your subsite with meta refresh headers to handle an instant or delayed redirect to another website.

    This website will even help you create redirects for various systems and servers.

    https://www.rapidtables.com/web/tools/redirect-generator.html

    The meta refresh html code should be one of those options, also.

    Thread Starter urthllc

    (@urthllc)

    Here is the reason I would want to do it…
    Assume my company name is Alpha Bravo Charlie, LLC so I have purchased:
    abcllc.com
    alphabravocharliellc.com
    abcllc.org
    So rather than having to maintain multiple websites for the two .com company names I would prefer they both just point to the same site.

    Then I will create subdomain sites off that for my Agents such as:
    firstnamelastname.abcllc.com

    Its much easier to use your web services control panel which might be cpanel. your providers support will be able to direct you to the right tool to make the correct adjustments. then point all of your sites to the same root site I would recommend abclic.com then also add a wildcard for subdomains at abclic.com as well.
    That way you can start doing the sales men’s names as needed but the next question is do you really need multisite which will give each of your sales people their own site or do you just need to give each of them a page. Different ways to do things should be based on the overall needs for your company. Let me know more about what you ultimately want to be able to do and I will be able to point you in the right direction.

    • This reply was modified 5 years, 2 months ago by llorch.
    Thread Starter urthllc

    (@urthllc)

    Thanks for you reply, I have my domains pointing to the same site but that doesn’t solve the problem in multisite creating a separate site for each domain. Doesn’t appear to be a work around for this issue.

    In regards to the salespeople, each one is an independent contractor so they would want more flexibility than just a simple page that is why I need to setup Multi-site.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Domain mapping issues with multisite’ is closed to new replies.