Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8539257
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T11:19:17+00:00 2026-06-11T11:19:17+00:00

I have a WordPress MultiSite setup with multiple domains using the same install. I

  • 0

I have a WordPress MultiSite setup with multiple domains using the same install. I am using the plugin Networks for WordPress to achieve this.

WordPress is already configured to remove all www, which is good for subdomains, but I would like to configure all root sites to use www. (Leaving the subdomains without www.)

Now my problem is that in such a setup there is only one .htaccess file that seems to be shared by all sites in the network (regardless of what domain they belong to).

Also any redirection from .htaccess would require to first disable the default WordPress redirection for root sites. (Otherwise I’ll end up with an endless loop.)

So is there a way to redirect multiple non-www root sites to www, all from the same .htaccess file? And how to disable the default WordPress redirection to non-www for root sites only? Anything else required to get this working?

PS. Unfortunately, I don’t have direct access to Apache or DNS configuration, so I can’t use these methods instead of .htaccess.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-11T11:19:18+00:00Added an answer on June 11, 2026 at 11:19 am

    Try adding this in the htaccess file in your document root, above any wordpress rules that might be in there:

    RewriteEngine On
    RewriteCond %{HTTP_HOST} !^www\. [NC]
    RewriteCond %{HTTP_HOST} ^[^.]+\.[a-z]{2,3}$ [NC]
    RewriteRule ^(.*)$ http://www.%{HTTP_HOST}/$1 [L,R=301]
    

    As long as your “root sites” have domain names that only have one . in them (e.g. domain.com, domain.net, domain.us), it’ll redirect those all to redirect with a www in front.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I've got an instance using this AMI - ami-b7a29cc3 http://thecloudmarket.com/image/ami-b7a29cc3--bitnami-wordpress-3-3-1-1-multisite-linux-ubuntu-10-04-ebs#/details Which is a Wordpress
I have setup a wordpress multisite blog that is load balanced over 5 servers
I have a website with Wordpress 3.0.4 installation, set up as multisite install. Some
I have a Wordpress site (www.nurseresumetips.com) and I'm using a theme named JVPress. This
I have WordPress blog on server {IP}/blog. Recently I've bought 2 domains and configured
Im using ISPConfig 3.0.4 With multiple sites running on it already. I have recently
I have five different websites set up using Wordpress 3.0 Multisite. They each contain
I'm using Wordpress for a client's website and this client asked me if he
Is it possible to have Wordpress generate this type of unordered list? <ul id=nav1>
I have setup a custom Post Type in WordPress and have a question. How

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.