Support » Networking WordPress » how to create www subdomain in multisites setup?

Viewing 4 replies - 1 through 4 (of 4 total)
  • To add the www subdomain to your WordPress Multisite network. You can refer to these steps.

    1. Access wp-admin: Log in to your WordPress Multisite network’s admin dashboard.
    2. Navigate to Sites: Go to My Sites > Sites (/wp-admin/network/sites.php).
    3. Add New Subsite: Click on the “Add New” button at the top.
    4. Fill out the Fields: Complete the required fields for the new subsite:
    • Site Address: Contrary to the instruction, you can use www in the Site Address. In your case, you can enter http://www.mydomain.com. Subdomain: Specify the subdomain for the new site, such as siteaddress.mydomain.com.
    Make sure to fill out other relevant details for the subsite.
    • Save Changes: After filling out the fields, save the changes to create the new subsite.
    • By following the above steps, you will be able to create a subsite with the www subdomain. Keep in mind that some WordPress configurations might have restrictions on using www, but in many cases, it is allowed.
      Hope this helps.

    Thread Starter skysky

    (@skyfranky)

    thanks for the info. I created a http://www.mydomain.com subsite, but whenever I open https://www.mydomain.com, it will be redircted to https://mydomain.com.

    It seems wordpress auto redirect www to main site without any subdomain. I can not find any document about how to setup www

    Hi.. @skysky

    you can try these steps:

    • Log in to your subsite’s WordPress dashboard.
    • Go to “Settings” > “General.”
    • Update WordPress Address (URL) and Site Address (URL): Change both the “WordPress Address (URL)” and “Site Address (URL)” to include the “www” prefix. For example:
      WordPress Address (URL): https://www.mydomain.com
      Site Address (URL): https://www.mydomain.com
      Save the changes.
    • Check your .htaccess file for this code:
      <IfModule mod_rewrite.c>
      RewriteEngine On
      RewriteCond %{HTTP_HOST} !^www\. [NC]
      RewriteRule ^ https://www.%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
      </IfModule>
    • Check WordPress Plugins: Some plugins might interfere with URL settings and redirection. Temporarily deactivate any URL-related or redirection plugins you have installed and see if the issue persists.
    • Clear Browser Cache.
    • Check Server Configuration.

    • This reply was modified 1 week, 1 day ago by MilesWeb.

    Check WordPress Plugins: Some plugins might interfere with URL settings and redirection. Temporarily deactivate any URL-related or redirection plugins you have installed and see if the issue persists.

Viewing 4 replies - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.