Support » Networking WordPress » Multisite – installed subdirectory

  • Resolved educhr

    (@educhr)


    Please forgive me while we learn. We are testing wordpress as an option for our teachers to create blogs. Our website is Joomla based but we are looking into wordpress as a subdirectory (not at root) to run the staff and classroom pages. IS this possible?

    We (2 students and myself) have installed wordpress on 3 different test servers (workstations) and installed WordPress into www/staff/ All the configurations work for the main wordpress site,network enabled, but no subdirectory multisites will work. Blank error page.

    We have taken 3 days reading forums to decifier a solution, with no success.

    Thanks in advance

Viewing 15 replies - 1 through 15 (of 24 total)
  • Blank/White page errors are, generally, PHP errors. Check your error log.

    Also, what’s in your .htaccess file?

    I will clarify – Blank page is Object not found 404 error.

    Not sure how to check error logs yet, but I am sure forums will assist me.

    .htaccess file located in staff folder (wordpress)
    RewriteEngine On
    RewriteBase /staff/
    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]

    Did you remove the default theme?

    No themes have been removed and all themes installed are activated.

    Can you switch your sites to use Twenty Ten (i.e. the default theme)?

    Did you find the error logs on the server yet? And read them? 🙂

    Sorry for the delay. I had to teach 3 courses.

    Thanks for your suggestions thus far. Twenty ten theme is set by default on the main site as well as the subdirectory sites. I don’t believe themes are the issue.

    Please keep in mind that the visiting the new subdirectory site or even trying the subsite backend results in a “file not found” 404 error page.

    When creating new sub sites it creates the entry on the database table and sends out e-mails to confirm set up, but NO access to the page.

    I believe it is a config issue, since I have duplicated this on 3 different test sites.

    I tried to view error logs and either have none or can’t find them. I edited the wp-config file.

    define('WP_DEBUG', true);
    define('WP_DEBUG_LOG', true);
    define('WP_DEBUG_DISPLAY', true);
    @ini_set('display_errors',1);
    define( 'WP_ALLOW_MULTISITE', true);
    define( 'MULTISITE', true );
    define( 'SUBDOMAIN_INSTALL', false );
    $base = '/staff/';
    define( 'DOMAIN_CURRENT_SITE', 'www.<em>domainname</em>' );
    define( 'PATH_CURRENT_SITE', '/staff/' );
    define( 'SITE_ID_CURRENT_SITE', 1 );
    define( 'BLOG-ID_CURRENT_SITE', 1 );

    not sure if the first 4 lines are correct, but no errors on main page, admin page, or in the debug.log file that I created in the wp-content folder with 666 rights.

    Thanks for all your thoughts and suggestions. My kids are eagerly waiting on solving this issue. Thanks for promoting their education too.

    It’s an htaccess issue. That’s how the URLs are built. make sure you have an .htaccess file in the same folder as the wp-config file.

    (I’m a homeschooler. Taught my kids WordPress. 😉 )

    define( 'DOMAIN_CURRENT_SITE', 'www.<em>domainname</em>' );

    You don’t really have www.<em>domainname</em> in there, I’m assuming, but http://www.domain.com right? (Just making sure! I’ve hung myself up for a couple days with things like that)

    Ooo yeah I hope that was just to forum borking the obfuscation…

    @ Andrea_r
    .htaccess file and wp-config are located within my staff (wordpress) folder.

    Any guidance on .htaccess issue? How do I confirm that Mod_rewrite is looking at the .htaccess file. 644 is the rights on .htaccess file.

    @ipstenu
    define( 'DOMAIN_CURRENT_SITE', 'www.<em>domainname</em>' );
    I am learning to write in forums as well here. I was trying to place emphasis on domainname and didn’t realize that within certain codes that other codes would not work properly. I thought it was proper to not include your site name. Hopefully the line below is stated better.

    define( 'DOMAIN_CURRENT_SITE', 'www.________.k12.oh.us' );

    $base = ‘/staff/’;
    define( ‘PATH_CURRENT_SITE’, ‘/staff/’ );

    Well, these lines tell WordPress to put /staff/ in the URL.

    I thought it was proper to not include your site name.

    Eh. Lotta dispute on that one. I’ve never found it to matter unless the site is Super Sekkrit! 🙂 But yeah, we just wanted to be sure you’re using the right URL 😉 You never know when a copy/paste went awry. Good!

    Andrea, in the .htaccess they also have
    RewriteBase /staff/

    And said

    We (2 students and myself) have installed wordpress on 3 different test servers (workstations) and installed WordPress into www/staff/

    At this point I’m assuming they want staff as a default subfolder. Do they still need all that?

    Did you find the error logs on the server yet?

Viewing 15 replies - 1 through 15 (of 24 total)
  • The topic ‘Multisite – installed subdirectory’ is closed to new replies.