• i just recently install on wordpress multisite which uses subdomain as my multisite

    i have changes /htaccess on main domain for multiste

    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ – [L]

    # uploaded files
    RewriteRule ^([_0-9a-zA-Z-]+/)?files/(.+) wp-includes/ms-files.php?file=$2 [L]

    # add a trailing slash to /wp-admin
    RewriteRule ^([_0-9a-zA-Z-]+/)?wp-admin$ $1wp-admin/ [R=301,L]

    RewriteCond %{REQUEST_FILENAME} -f [OR]
    RewriteCond %{REQUEST_FILENAME} -d
    RewriteRule ^ – [L]
    RewriteRule ^([_0-9a-zA-Z-]+/)?(wp-(content|admin|includes).*) $2 [L]
    RewriteRule ^([_0-9a-zA-Z-]+/)?(.*\.php)$ $2 [L]
    RewriteRule . index.php [L]

    as wel as
    wp-config.php

    /* Multisite */
    define( ‘WP_ALLOW_MULTISITE’, true );
    define(‘MULTISITE’, true);
    define(‘SUBDOMAIN_INSTALL’, true);
    define(‘DOMAIN_CURRENT_SITE’, ‘multisite.anghc.com’);
    define(‘PATH_CURRENT_SITE’, ‘/’);
    define(‘SITE_ID_CURRENT_SITE’, 1);
    define(‘BLOG_ID_CURRENT_SITE’, 1);

    /* That’s all, stop editing! Happy blogging. */

    but i still cant access to the multisite i created
    it either shown page index
    or on wp-admin shown 404 error

Viewing 3 replies - 1 through 3 (of 3 total)
  • You’ve installed into a ‘blog’ subdirectory so my first question is, ‘did you actually run Network Setup after telling wp-config it was a multisite now?

    I’m a little confused about why you can’t get into there now otherwise as that admin login used to run the network installer is the same one you’ll log back in with as super admin.

    Anyway, it sounds like a permalink issue… but make sure the subdomain you’re using is mapped to the blog directory under root via the Control Panel (which I think it is).

    Sometimes you can delete the proper htaccess file (in your case the one in the ‘blog’ directory) and toggle permalinks after login but I also worry that a multi-site on a mapped addon domain might always be problematic and confusing. Copy that htaccess file before you delete it or rename it temporarily. Flushing (toggling) the permalinks should rebuild the htaccess or cause WP to tell you what to place in there if it can’t write it there itself.

    Once you get it working it should be fine… until you need to add that next subdomain. Don’t forget the native subdomain on the newer sites will be something like newsite dot the whole network subdomain with the dot separating the two parts and then the dot TLD until you map it.

    Sometimes it’s a whole lot easier to spend a few extra dollars on a new domain and a separate host or reseller hosting. Or even a VPS.

    Another option would be to ‘redo from start’ as a subdirectory install which is straight forward and then let domain mapping deal with the subdomains needed.

    Don’t let subdomain or subdirectory installs confuse you either you can map subdomains to a subdirectory network which can live in a subdomain or a subdirectory itself. It’s a matter of if the server is looking at things or is it the WordPress as network doing the looking.

    Thread Starter snigapoe

    (@snigapoe)

    thanks i will look into it
    yeah multisite i was intended on subdomain
    as main domain i was using it for something else

    it’s some trial project i was running on for my organization with no extra budge allocate to me until it’s official

    The solution for me was to make a wildcard on my hosting.

    So if you are trying to install the multisite on a live website and not on your localhost, most probably this is also your problem.

    Login to your CPANEL, go to subdomains and make a subdomain with the name “*” with the root “/public_html” (this may differ on your hosting).

    This will allow WordPress to create any subdomain name for your website *.yourwebsite.com

    • This reply was modified 5 years, 10 months ago by nicolamihaita.
    • This reply was modified 5 years, 10 months ago by nicolamihaita.
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘multisite not working on wordpress 5.0.3’ is closed to new replies.