• Resolved ubergiant

    (@ubergiant)


    The primary parent website towerofpower.com.au is setup and working fine. The joshandbree.com website is under the same install using the plugin and mostly working fine. Except the non-www version of joshandbree.com redirects to towerofpower.com.au. How can I fix this?

    • This topic was modified 7 years, 2 months ago by ubergiant.
Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Ron Rennick

    (@wpmuguru)

    Add a second domain map to your subsite that includes the www. Keep the non-www as the primary domain.

    Thread Starter ubergiant

    (@ubergiant)

    Thanks Ron. I have set this up. However, the non-www is treated as a separate website when either the www or non-www versions are set as the primary domain. I’d also like the non-www to redirect to the www.

    Plugin Author Ron Rennick

    (@wpmuguru)

    Add the redirect to your .htaccess.

    Thread Starter ubergiant

    (@ubergiant)

    I’m using this to redirect:

    # redirect non-www version of network website
    RewriteCond %{HTTP_HOST} ^childwebsite\.com$ [NC]
    RewriteRule ^(.*)$ https://www.childwebsite.com/$1 [L,R=301]

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Non-www of child redirects to parent’ is closed to new replies.