• Hi there,

    I have a WordPress Multisite setup with a mainsite and multiple subsite, which have their own top level domains (with domain mapping).

    The mainsite has the domain https://mainpage.com/

    One of the subsites has the domain https://www.subsite1.com/ (in the network settings I added the domain with www)
    But when I enter the subsite’s domain without www (=https://subsite1.com/) it redirects to the mainsite (https://mainsite.com/)

    How can I set this up, so that I can have the subpage with www and the redirects work correctly?

    thanks in advance!

Viewing 1 replies (of 1 total)
  • Moderator bcworkz

    (@bcworkz)

    I think you’d need to add a rewrite rule set or redirect directive in .htaccess that adds the www before WP ever sees the request.

    There are lots of non-www to www .htaccess examples on the ‘net. The difference being you’d need to modify the matched condition to only match subsite1.com requests.

Viewing 1 replies (of 1 total)
  • The topic ‘WP Multisite Subsite non-www to www redirect not working’ is closed to new replies.