WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. fka
    Member
    Posted 1 year 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?

    http://wordpress.org/extend/plugins/networks-for-wordpress/

  2. fka
    Member
    Posted 1 year 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:
    http://subdomain.example.com

  3. David Dean
    Member
    Plugin Author

    Posted 1 year 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
    Member
    Posted 1 year 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
    Member
    Posted 1 year 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
    Member
    Posted 1 year 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
    Member
    Posted 1 year 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
    Member
    Posted 1 year ago #

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

    Thank you for your help fka!

  9. David Dixon
    Member
    Posted 1 year 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

About this Topic