Support » Alpha/Beta/RC » 3.0 Multisite SubDIRECTORY Lines?

  • 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?

Viewing 9 replies - 1 through 9 (of 9 total)
  • The line in the wp-config is either vhost=yes or subdomains =yes. Change it to no.

    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', '' );
    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 🙁

    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]

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


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

    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.

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

    Hmmm…I’ll have to try that when I get a chance to sit down and work on it again and update with results 🙂

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

    How to Force Multi Site to Use Subdirectories

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘3.0 Multisite SubDIRECTORY Lines?’ is closed to new replies.