• I have created a Mutli Site environment by using the Plugin Enable Multi Site.
    I have created a * record to handle the subdomains within the DNS
    I’m able to create new sites – also working fine

    However, when I would like to go to the dashboard of a subdomain site – I do get the following message:

    Not Found
    The requested URL /wp-admin/ was not found on this server.
    Apache Server at reinigen.synergic.nl Port 80

    I have checked the user permissions – seems to be all correct.

    Is there anyone that can point me to the right direction to solve this?

Viewing 12 replies - 1 through 12 (of 12 total)
  • Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    ?????? Advisor and Activist

    What’s in your .htaccess?

    Thread Starter stbauer

    (@stbauer)

    This is the current content of the HTACESS file

    #Made Multi-Site with Multi-Site Enabler 1.5#
    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ - [L]
    
    # uploaded files
    RewriteRule ^files/(.+) wp-includes/ms-files.php?file=$1 [L]
    
    RewriteCond %{REQUEST_FILENAME} -f [OR]
    RewriteCond %{REQUEST_FILENAME} -d
    RewriteRule ^ - [L]
    
    RewriteRule . index.php [L]
    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    ?????? Advisor and Activist

    I missed the first time that this was using the Multisite enabler. I hate that thing, it acts up.

    Go to /wp-admin/network/setup.php

    Make SURE your .htaccess matches the one there, and check your wp-config.php for the lines mentioned. ALL the lines. They matter.

    Thread Starter stbauer

    (@stbauer)

    Thanks for the support. Your question related to the matches is not clear to me.

    I have changed the .htaccess in the following way – based on doc MS Codex

    #Made Multi-Site with Multi-Site Enabler 1.5#
    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]

    The network/setup.php contains the following info:

    <?php
    /**
     * Network Setup administration panel.
     *
     * @package WordPress
     * @subpackage Multisite
     * @since 3.1.0
     */
    
    /** Load WordPress Administration Bootstrap */
    require_once( './admin.php' );
    
    if ( ! is_multisite() )
    	wp_die( __( 'Multisite support is not enabled.' ) );
    
    require( '../network.php' );

    Looking forward to your response on this

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    ?????? Advisor and Activist

    That wasn’t what I meant… I was unclear, sorry. Go to https://yoursite.com/wp-admin/network/setup.php

    ie VISIT the page ??

    Thread Starter stbauer

    (@stbauer)

    OK – I have followed the directions:
    ‘Create a blogs.dir directory at /var/www/vhosts/synergic.nl/httpdocs/wp-content/blogs.dir. This directory is used to store uploaded media for your additional sites and must be writeable by the web server.’

    IT WAS ALREADY THERE

    ‘define( ‘MULTISITE’, true );
    define( ‘SUBDOMAIN_INSTALL’, true );
    $base = ‘/’;
    define( ‘DOMAIN_CURRENT_SITE’, ‘synergic.nl’ );
    define( ‘PATH_CURRENT_SITE’, ‘/’ );
    define( ‘SITE_ID_CURRENT_SITE’, 1 );
    define( ‘BLOG_ID_CURRENT_SITE’, 1 );’

    THESE LINE WERE PART OF CONFIG.PHP FILE. ONLY IN MY CASE IS “1” INSTEAD OF “TRUE”. I ASSUME THAT WILL BE THE SAME

    ‘#Made Multi-Site with Multi-Site Enabler 1.5#
    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ – [L]

    # uploaded files
    RewriteRule ^files/(.+) wp-includes/ms-files.php?file=$1 [L]

    RewriteCond %{REQUEST_FILENAME} -f [OR]
    RewriteCond %{REQUEST_FILENAME} -d
    RewriteRule ^ – [L]

    RewriteRule . index.php [L]’

    THE .HTACCESS CONTAINS ALSO THE RIGHT INFORMATION ….

    SO WHAT ELSE COULD IT BE?

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    ?????? Advisor and Activist

    Please don’t type in all caps. It’s rude. I’m helping you as a free volunteer, and if you’re gonna be rude, I’m going to walk away.

    I asked if you could verify everything was set up right. A simple ‘Yes, it looks the same’ would have been fine ??

    In your wp-config.php, can you check that this line is also there:
    define('WP_ALLOW_MULTISITE', true);

    Also, make sure those Multisite lines are all above the line that says:
    /* That's all, stop editing! Happy blogging. */

    Thread Starter stbauer

    (@stbauer)

    Sorry, No attention at all to be rude to you, I just wanted to make a difference between the code copies and my responses. Will use the Code option next time

    I have added that line to the config file, but when I add the line nothing is working.
    I have tried this with

    define('WP_ALLOW_MULTISITE', true);
    and with
    define('WP_ALLOW_MULTISITE', 1);

    When I remove this line, I do get the side back.

    Strange, I do hope you have another option my dear friend ??

    Thread Starter stbauer

    (@stbauer)

    The config file has these details:
    /* This site was made multi-site enabled by @link https://jgwebdevelopment.com */

    define ('MULTISITE', '1');
    define ('SUBDOMAIN_INSTALL', '1');
    define ('DOMAIN_CURRENT_SITE', 'synergic.nl');
    define ('PATH_CURRENT_SITE', '/');
    define ('SITE_ID_CURRENT_SITE', 1);
    define ('BLOG_ID_CURRENT_SITE', 1);
    $base = '/';

    I have tried to use your suggested line as a second line after the first define … but then the site will go up. I’m still not able to start the dashboard (404), and when I visit the site I do get the default page of the web server …

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    ?????? Advisor and Activist

    *sigh* Honestly, man, it’s probably something stupid that plugin did. Which is why you’ll see us tell people NOT to use it left, right and center. The true (vs 1) is bog standard WP, and I don’t know why the plugin version of it is forcing the 1, btu can only presume it’s because it’s playing games in your database :/

    Thread Starter stbauer

    (@stbauer)

    OK – so there is no need to change the 1 to True.

    Is there anything you recommend to do or would it be the best way to start from scratch – reinstall WP
    – activate WP manually

    Looking forward to hear from you

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    ?????? Advisor and Activist

    I would reinstall and activate Multisite manually. If you don’t have any content to use, that’s the easiest.

    If you DO, then you’d have to uninstall Multisite, which is a little more complicated, but can be done.

Viewing 12 replies - 1 through 12 (of 12 total)
  • The topic ‘Sub-Domain WP-Admin not working’ is closed to new replies.