Networks for WordPress
[resolved] Subdomains addition (9 posts)

  1. fka
    Posted 3 years ago #

    I have a network setup, WP subdomain, where I have each tld mapped to a network, and they work fine.
    I added subdomain in cPanel.
    When adding same subdomain in networks for wordpress plugin, I am attempting to use this URL to get to site dashboard: http://subdomain.example.com/wp-admin
    instead, I can only get to it using: http://example.com/subdomain/wp-admin
    The steps I am taking:
    From the network, select add site and use sudomainexamplecom (also tried subdomain on its own) > then edit so that it reads sudomain.exaple.com
    change the path to show only: /
    I prefer to reach the URL using sudomain.example.com; Am I missing something? Or is this the default behavior of the plugin?


  2. fka
    Posted 3 years ago #

    I guess the only way to do it is to create a new network for the subdomain if you want to be reachable in the format:

  3. David Dean
    Plugin Author

    Posted 3 years ago #

    Hi fka,

    If you chose sub-directory (not sub-domain) install when first enabled the Network feature, you will have to create a new network for each different domain or sub-domain.

    If you choose a sub-domain install, you may be able to get the URLs you are looking for without adding networks.

  4. fka
    Posted 3 years ago #

    Thanks David. You are right.
    I looked into it and someone I had working on a theme made changes to wp-config among other things. I changed things back and it is working fine.
    I am making the status of this thread resolved.

  5. David Dixon
    Posted 2 years ago #

    could you post the changes you made to the wp-config? I am currently stuck with a similar problem and would greatly appreciate the help

  6. fka
    Posted 2 years ago #

    Hi David,

    I changed back the subdomain_install from false to true below the comments that begin with:
    * For developers: WordPress debugging mode.
    * Change this to true to enable the display of notices during development.
    * It is strongly recommended that plugin and theme developers use WP_DEBUG
    * in their development environments.

    so below this comment, I have the following lines:

    define('WP_DEBUG', false);
    define('WP_ALLOW_MULTISITE', true );
    define( 'MULTISITE', true );
    define( 'SUBDOMAIN_INSTALL', true );
    $base = '/';
  7. David Dixon
    Posted 2 years ago #

    just to clarify, are you now able to add different networks or are the websites all running as sub sites on a single network?

  8. David Dixon
    Posted 2 years ago #

    SUCCESS!! I can now administrate the different networks i have set up!

    Thank you for your help fka!

  9. David Dixon
    Posted 2 years ago #

    I had to comment out the lines in order to add subsites

    define( 'DOMAIN_CURRENT_SITE', 'example.com' );
    define( 'PATH_CURRENT_SITE', '/' );
    define( 'SITE_ID_CURRENT_SITE', 1 );
    define( 'BLOG_ID_CURRENT_SITE', 1 );;

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Networks for WordPress
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic