• Resolved David Sword

    (@davidsword)


    Have a client insisting on including www. onto their subdomain sites (don’t ask).

    is it possible to setup a multisite site as www.site1.example.com ? instead of site1.example.com

    Thanks in advanced for your time.

Viewing 6 replies - 1 through 6 (of 6 total)
  • Hello davidsword!

    Would it be possible to be able to do this through using DNS to either redirect or add the site1.example.com to become http://www.site1.example.com?

    Just some thoughts for starting to figure this out!

    Thread Starter David Sword

    (@davidsword)

    I can’t do it at the DNS level as they need the domains without www. for their internal network. So they still need to make non-www requests without being redirected at the dns level. The rest of the world when accessing non-www, gets forward to the www. (silly, I know).

    I’m 99.9% sure I can do:
    define('DOMAIN_CURRENT_SITE', 'sub.example.com');
    and get sites like site1.sub.example.com;

    But my problem is the “wildcard” is in the middle www.(site1).example.com between the two statics.

    The only thing I can think of is if WordPress multisite sub-domain would allow a DOT as a character in the sub-site name, i.e. set up a sub domain site in the New Site input as “www.site1” , but I image it’s only alphanumeric.

    Use the domain mapping plugin. Then you can map a sub site to any name:
    site1.domain.com -> http://www.site1.domain.com

    https://wordpress.org/plugins/wordpress-mu-domain-mapping/

    Thread Starter David Sword

    (@davidsword)

    hahaha. right under my nose!! I already had that plugin setup as they used to use domains for the sub-domains.

    Yes, that actually makes perfect sense. Thank you,

    Thanks for the help jkhongusc!

    Glad it worked out for your davidsword.

    Take care,
    Kevin

    Thread Starter David Sword

    (@davidsword)

    thanks Kpudlo!

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘can multisite be www.site1.example.com?’ is closed to new replies.