WordPress.org

Ready to get started?Download WordPress

Forums

3.0 Multisite SubDIRECTORY Lines? (10 posts)

  1. justbishop
    Member
    Posted 4 years ago #

    Can someone post me the lines to add to wp-config.php and .htaccess for a subDIRECTORY install?

    Either that or a list of what tables are added when enabling the network so that I can empty/drop them and start over and choose subdirectories?

  2. The line in the wp-config is either vhost=yes or subdomains =yes. Change it to no.

  3. justbishop
    Member
    Posted 4 years ago #

    I have this in my wp-config.php (per the network installer screen) right above the "stop editin" line. I chnaged the subdomain line from "true" to "false", which seems to have done the trick:

    define( 'MULTISITE', true );
    define( 'SUBDOMAIN_INSTALL', false );
    $base = '/';
    define( 'DOMAIN_CURRENT_SITE', 'mysite.com' );
    define( 'PATH_CURRENT_SITE', '/' );
    define( 'SITE_ID_CURRENT_SITE', 1 );
    define( 'BLOG_ID_CURRENT_SITE', 1 );

    What should be in my .htaccess, though? I think I messed it up, and going back to the original has now caused me not to even be able to get to my admin panel. My browser just keeps giving me a redirect screen :(

  4. I was about to say 'check your admin section' but then I saw you can't ge there :)

    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]
  5. justbishop
    Member
    Posted 4 years ago #

    Thanks for trying, but that still gives me a redirect screen when trying to get to /wp-admin

    :(

  6. justbishop
    Member
    Posted 4 years ago #

    anyone know which DB tables to empty/drop to start all over?

  7. justbishop
    Member
    Posted 4 years ago #

    NVM, I just dropped my current DB tables and imported my backup from before I enabled the network.

    Decided to start over fresh. Disabled my plugins and added the define('WP_ALLOW_MULTISITE', true); line to my config. Went through the steps again on the admin panel, this time choosing subdirectories. Edited my wp.config.php and .htaccess files as directed by the script, and am still getting a redirect when I try to go to the admin dashboard.

    While enabling the network, on the admin page where it tells you what code to add into your files, clicking the "return to dashboard" (or whatever it says) link at the bottom of the instructions actually took me to the log in form, but when I tried to log in, I got the redirect.

    P.S. Buddypress and some other BP plugins are installed but DEACTIVATED when this issue is occurring.

  8. Are the bp plugins in the must use folder? Actually ... why not just chuck all the plugins for now, get 'em out totally.

  9. justbishop
    Member
    Posted 4 years ago #

    Hmmm...I'll have to try that when I get a chance to sit down and work on it again and update with results :)

  10. Jack Reichert
    Member
    Posted 3 years ago #

    Not sure if you solved it but I found this post that may help

    http://journalxtra.com/2010/07/how-to-force-multi-site-to-use-subdirectories/

Topic Closed

This topic has been closed to new replies.

About this Topic