Support » Networking WordPress » 404 wp-admin page subdomain multisite

  • Any subdomains I create in wordpress multisite show Plesk 404 error when I try and visit their dashboards.
    I’m running Plesk Version 18.0.57

    I have checked the following and reinstalled many times:

    root@vps:/var/www/vhosts/system# sudo a2enmod rewrite
    Module rewrite already enabled

    /* Add any custom values between this line and the “stop editing” line. */

    define(‘WP_ALLOW_MULTISITE’, true);
    define( ‘MULTISITE’, true );
    define( ‘SUBDOMAIN_INSTALL’, true );
    define( ‘DOMAIN_CURRENT_SITE’, ‘mydomain.com’ );
    define( ‘PATH_CURRENT_SITE’, ‘/’ );
    define( ‘SITE_ID_CURRENT_SITE’, 1 );
    define( ‘BLOG_ID_CURRENT_SITE’, 1 );

    BEGIN WordPress The directives (lines) between “BEGIN WordPress” and “END WordPress” are dynamically generated, and should only be modified via WordPress filters. Any changes to the directives between these markers will be overwritten. Subfolder Example

    RewriteEngine On
    RewriteBase /
    RewriteRule ^index.php$ – [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] SubDomain Example

    RewriteEngine On
    RewriteBase /
    RewriteRule ^index.php$ – [L] add a trailing slash to /wp-admin

    RewriteRule ^wp-admin$ wp-admin/ [R=301,L]

    RewriteCond %{REQUEST_FILENAME} -f [OR]
    RewriteCond %{REQUEST_FILENAME} -d
    RewriteRule ^ – [L]
    RewriteRule ^(wp-(content|admin|includes).) $1 [L] RewriteRule ^(..php)$ $1 [L]
    RewriteRule . index.php [L] END WordPress

    Any pointers or help would be great

    • This topic was modified 2 weeks, 6 days ago by James Huff. Reason: moved to Networking WordPress since this is a multisite issue
Viewing 1 replies (of 1 total)
  • Can you share one subdomain so I can take a look?

    The problem is likely to be in the DNS/VHOST configuration for the subdomains.

    Note the WordPress multisite subdomains are VIRTUAL. They should merely forward to the primary domain for WordPress to take over and serve the appropriate subsite from the database.

    These subdomains should NOT be physical subdomains with their own folders (document roots)!

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