• Hi, I’m working on setting up a multisite network for a client. This is my first attempt at making a network through WordPress so bear with me. I followed all the steps here: http://codex.wordpress.org/Create_A_Network and once I got to step 5 I got stopped.

    I rewrote the htaccess file and wp-config file just like it told me in the Network Setup menu, uploaded them, then re-logged in. I’m not seeing the “My Sites” option in the admin bar. When I go to Tools > Network Setup, it gives me this error:

    Warning: An existing WordPress network was detected.
    Please complete the configuration steps. To create a new network, you will need to empty or remove the network database tables.

    and also prompts me to rewrite the htaccess and wp-config file again.

    Here’s the htaccess WordPress code:

    <IfModule mod_rewrite.c>
    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]
    </IfModule>

    and here’s the wp-config code:

    * Multisite */
    define( 'WP_ALLOW_MULTISITE', true );
    define('MULTISITE', true);
    define('SUBDOMAIN_INSTALL', true);
    define('DOMAIN_CURRENT_SITE', 'justaskva.org');
    define('PATH_CURRENT_SITE', '/');
    define('SITE_ID_CURRENT_SITE', 1);
    define('BLOG_ID_CURRENT_SITE', 1);
    /* That's all, stop editing! Happy blogging. */
    
    /** Absolute path to the WordPress directory. */
    if ( !defined('ABSPATH') )
    	define('ABSPATH', dirname(__FILE__) . '/');
    
    /** Sets up WordPress vars and included files. */
    require_once(ABSPATH . 'wp-settings.php');
Viewing 14 replies - 1 through 14 (of 14 total)
  • Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    🏳️‍🌈 Advisor and Activist

    Warning: An existing WordPress network was detected.
    Please complete the configuration steps. To create a new network, you will need to empty or remove the network database tables.

    And did you do that? These are the tables:

    wp_blogs
    wp_blog_versions
    wp_registration_log
    wp_signups
    wp_site
    wp_sitemeta
    Thread Starter FranticJ3

    (@franticj3)

    Yes I deleted those tables and restarted from step 1 on that link above. Gave me the same result

    Thread Starter FranticJ3

    (@franticj3)

    Would like to note that I downloaded the htaccess file and it had reverted back to how it used to be before I attempted any of this.

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    🏳️‍🌈 Advisor and Activist

    Is wp_ your table prefix?

    What are the names of all the current tables in your DB?

    This is one of the weird things where I’m never able to reproduce this kind of error :/

    Thread Starter FranticJ3

    (@franticj3)

    Yes wp_ is the current prefix.

    wp_allowphp_functions
    wp_calendar
    wp_calendar_categories
    wp_calendar_config
    wp_commentmeta
    wp_comments
    wp_etm_plugin_index
    wp_etm_plugin_string
    wp_events_rec
    wp_links
    wp_ngg_album
    wp_ngg_gallery
    wp_ngg_pictures
    wp_options
    wp_postmeta
    wp_posts
    wp_revslider_settings
    wp_revslider_sliders
    wp_revslider_slides
    wp_terms
    wp_term_relationships
    wp_term_taxonomy
    wp_usermeta
    wp_users

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    🏳️‍🌈 Advisor and Activist

    Okay, and ALL plugins are off when you try this?

    Thread Starter FranticJ3

    (@franticj3)

    Yes. It makes me turn them off before I can install the DB tables through the Network Setup page

    Thread Starter FranticJ3

    (@franticj3)

    I haven’t modified the htaccess file since I last replied. Just re-downloaded it and it reverted to the default for wordpress.

    Thread Starter FranticJ3

    (@franticj3)

    Sorry for the triple post but I believe I’ve figured out what’s happening. The htaccess file isn’t reflecting my changes once I upload it. I’ve redownloaded it after trying this process from the start and it’s reverting to default (well the wordpress section is anyways).

    EDIT: Re-did the process and after uploading the htaccess file i changed the permissions on it, via Filezilla, to 444 instead of 644. Still not working

    i’ve got the same problem!
    i’ve disabled all plugin, changed files and upload them and I’ve got the same error!

    oh-my-god!
    i’ve simply moved the code from the end of wp-config above where it says /* That’s all, stop editing! Happy blogging. */
    It was so simple! I can’t belive! I’m in heaven now!
    BUT
    now i’ve got a new problem: in my existing site (i’ve created multisite starting from ad existing site) i’ll see only an admin message
    http://www.abacashi.it/wp-signup.php?new=abacashi.it
    I’m not able to see my site but only this page!
    marco

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    🏳️‍🌈 Advisor and Activist

    Marco, make a new topic for yourself please 🙂

    Sorry for the triple post but I believe I’ve figured out what’s happening. The htaccess file isn’t reflecting my changes once I upload it. I’ve redownloaded it after trying this process from the start and it’s reverting to default (well the wordpress section is anyways).

    That sounds like a server error… But more it sounds like you have a plugin that’s reverting changes. You don’t have any security plugins, do you?

    Thread Starter FranticJ3

    (@franticj3)

    The 7 active plugins are IBinc Optimizer, Advanced Custom Fields, Multiple Post Thumbnails, Revolution Slider, Contact Form 7, Jetpack, and WordPress SEO.

    When I re-login the network doesn’t work, which is before I re-activate the plugins, so that shouldn’t be the issue right?

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    🏳️‍🌈 Advisor and Activist

    Some plugins are built to re-run even when inactive. Try naming the plugins folder to plugins-off AND switching to the default theme (Twenty Fourteen)

Viewing 14 replies - 1 through 14 (of 14 total)
  • The topic ‘Rewrote htaccess and wp-config for multisite and it's not working’ is closed to new replies.