Forum Replies Created

Viewing 7 replies - 1 through 7 (of 7 total)
  • Thread Starter samosval37

    (@samosval37)

    I added define('WP_ALLOW_REPAIR', true); to see what tables I should rename. For example, wp_comments I had to rename to wp_1_comments. And when I added fr site, all tables for it was created automatically. The table wp_2_options was filled with all settings I used in WP network. Don’t you think that the problem is in misconfiguration of .htaccess

    Thread Starter samosval37

    (@samosval37)

    At first I added this line
    define('WP_ALLOW_MULTISITE', true);

    And after running Network setup, I changed htaccess file and added next lines to wp-config.php

    define('SUBDOMAIN_INSTALL', false);
    define('DOMAIN_CURRENT_SITE', 'mydomain.com');
    define('PATH_CURRENT_SITE', '/');
    define('SITE_ID_CURRENT_SITE', 1);
    define('BLOG_ID_CURRENT_SITE', 1);
    define('WP_ALLOW_REPAIR', true);

    I want to say that I have an access to /wp-admin/network and to /wp-admin.
    But don’t have access to /fr/wp-admin

    Thread Starter samosval37

    (@samosval37)

    Of cause no, I added this lines for a Multisite

    Thread Starter samosval37

    (@samosval37)

    When I did it before, my .htaccess file was:

    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ - [L]
    
    # uploaded ?les
    RewriteRule ^([_0-9a-zA-Z-]+/)??les/(.+) wp-includes/ms-?les.php??le=$2 [L]
    
    # add a trailing slash to /wp-admin
    #RewriteRule ^([_0-9a-zA-Z-]+/)?wp-admin$ wordpress/$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).*) wordpress/$2 [L]
    RewriteRule ^([_0-9a-zA-Z-]+/)?(.*\.php)$ wordpress/$2 [L]
    RewriteRule . index.php [L]
    </IfModule>
    # END WordPress

    THe part from wp-config.php:

    /*Multisite*/
    define('WP_ALLOW_MULTISITE', true);
    define('SUBDOMAIN_INSTALL', false);
    define('DOMAIN_CURRENT_SITE', 'mydomain.com');
    define('PATH_CURRENT_SITE', '/');
    define('SITE_ID_CURRENT_SITE', 1);
    define('BLOG_ID_CURRENT_SITE', 1);
    define('WP_ALLOW_REPAIR', true);

    And setting for a new site:

    Domain: http://mydomain.com
    Path: /fr/
    SiteURL: http://archex.ca/fr

    I’m not sure, but I have one guess that I need to change htaccess like this, becuase it’s located in the same directory as all WP files:

    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ - [L]
    
    # uploaded ?les
    RewriteRule ^([_0-9a-zA-Z-]+/)??les/(.+) wp-includes/ms-?les.php??le=$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]
    </IfModule>
    # END WordPress
    Thread Starter samosval37

    (@samosval37)

    If I add this line, I get “error establishing a database connection”

    Thread Starter samosval37

    (@samosval37)

    No, I had sigle site on WP 3.5, then I decided to create network.
    I did it before, I know how to do it, when I want to locate my sites like this: mysite.com and mysite.com/fr

    Thread Starter samosval37

    (@samosval37)

    If I go http://mydomain.com/wordpress/wp-admin/network/setup.php I get The Network creation panel is not for WordPress MU networks.
    I changed wp-config.php, but nothing happened.

    [Moderator Note: Please ensure that you are embedding links correctly in your posts.]

Viewing 7 replies - 1 through 7 (of 7 total)