I've got a problem with multisite install

I've installed a multisite, the database shows all the tables, the dashboards for the sites are functional, but the two subdirectory sites do not show in the browser. What have I done wrong?

  • AlphaMare

    htaccess:

    # BEGIN WordPress

    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ - [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]

    # END WordPress

    wp-config.php:

    <?php

    /**

    * The base configurations of the WordPress.

    *

    * This file has the following configurations: MySQL settings, Table Prefix,

    * Secret Keys, WordPress Language, and ABSPATH. You can find more information

    * by visiting {@link http://codex.wordpress.org/Editing_wp-config.php Editing

    * wp-config.php} Codex page. You can get the MySQL settings from your web host.

    *

    * This file is used by the wp-config.php creation script during the

    * installation. You don't have to use the web site, you can just copy this file

    * to "wp-config.php" and fill in the values.

    *

    * @package WordPress

    */

    // ** MySQL settings - You can get this info from your web host ** //

    /** The name of the database for WordPress */

    define('DB_NAME', 'xxx');

    /** MySQL database username */

    define('DB_USER', 'xxx');

    /** MySQL database password */

    define('DB_PASSWORD', 'xxx');

    /** MySQL hostname */

    define('DB_HOST', 'localhost');

    /** Database Charset to use in creating database tables. */

    define('DB_CHARSET', 'utf8');

    /** The Database Collate type. Don't change this if in doubt. */

    define('DB_COLLATE', '');

    /**#@+

    * Authentication Unique Keys and Salts.

    *

    * Change these to different unique phrases!

    * You can generate these using the {@link https://api.wordpress.org/secret-key/1.1/salt/ WordPress.org secret-key service}

    * You can change these at any point in time to invalidate all existing cookies. This will force all users to have to log in again.

    *

    * @since 2.6.0

    */
    xxxx
    /**#@-*/

    /**

    * WordPress Database Table prefix.

    *

    * You can have multiple installations in one database if you give each a unique

    * prefix. Only numbers, letters, and underscores please!

    */

    $table_prefix = 'xxx';

    /**

    * WordPress Localized Language, defaults to English.

    *

    * Change this to localize WordPress. A corresponding MO file for the chosen

    * language must be installed to wp-content/languages. For example, install

    * de_DE.mo to wp-content/languages and set WPLANG to 'de_DE' to enable German

    * language support.

    */

    define('WPLANG', '');

    /**

    * For developers: WordPress debugging mode.

    *

    * Change this to true to enable the display of notices during development.

    * It is strongly recommended that plugin and theme developers use WP_DEBUG

    * in their development environments.

    */

    define('WP_DEBUG', false);

    define('WP_ALLOW_MULTISITE', true);

    define('MULTISITE', true);
    define('SUBDOMAIN_INSTALL', false);
    define('DOMAIN_CURRENT_SITE', 'digitalensite.com');
    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');

    If I go to http://alphamare.ca/en/sample-page/ I can see a page (albeit a weird-looking one since I have not yet styles the theme as I want it)

    If I go to http://alphamare.ca/en/ (which is supposed to be the home page) I get a directory listing, Index of /en/, with just the parent directory showing in the list.

    I have also tried http://alphamare.ca/en/index.php and http://alphamare.ca/en/home with the same result.

    However, http://alphamare.ca/en/home.php gives me a page, but it is a 404 error, even though I have created and published a "home" page.

    I am not trying to create a big network, just two identical sites, with one in English and one in French.

  • AlphaMare

    Sorry I posted the wrong wp-config file - that's for another site I'm also having trouble with. The wp-config for alphamare.ca is:

    <?php
    /**
    * The base configurations of the WordPress.
    *
    * This file has the following configurations: MySQL settings, Table Prefix,
    * Secret Keys, WordPress Language, and ABSPATH. You can find more information
    * by visiting {@link http://codex.wordpress.org/Editing_wp-config.php Editing
    * wp-config.php} Codex page. You can get the MySQL settings from your web host.
    *
    * This file is used by the wp-config.php creation script during the
    * installation. You don't have to use the web site, you can just copy this file
    * to "wp-config.php" and fill in the values.
    *
    * @package WordPress
    */

    // ** MySQL settings - You can get this info from your web host ** //
    /** The name of the database for WordPress */
    define('DB_NAME', 'xxx');

    /** MySQL database username */
    define('DB_USER', 'xxx');

    /** MySQL database password */
    define('DB_PASSWORD', 'xxx');

    /** MySQL hostname */
    define('DB_HOST', 'localhost');

    /** Database Charset to use in creating database tables. */
    define('DB_CHARSET', 'utf8');

    /** The Database Collate type. Don't change this if in doubt. */
    define('DB_COLLATE', '');

    /**#@+
    * Authentication Unique Keys and Salts.
    *
    * Change these to different unique phrases!
    * You can generate these using the {@link https://api.wordpress.org/secret-key/1.1/salt/ WordPress.org secret-key service}
    * You can change these at any point in time to invalidate all existing cookies. This will force all users to have to log in again.
    *
    * @since 2.6.0
    */
    xxxxx

    /**#@-*/

    /**
    * WordPress Database Table prefix.
    *
    * You can have multiple installations in one database if you give each a unique
    * prefix. Only numbers, letters, and underscores please!
    */
    $table_prefix = 'xxxx';

    /**
    * WordPress Localized Language, defaults to English.
    *
    * Change this to localize WordPress. A corresponding MO file for the chosen
    * language must be installed to wp-content/languages. For example, install
    * de_DE.mo to wp-content/languages and set WPLANG to 'de_DE' to enable German
    * language support.
    */
    define('WPLANG', '');

    /**
    * For developers: WordPress debugging mode.
    *
    * Change this to true to enable the display of notices during development.
    * It is strongly recommended that plugin and theme developers use WP_DEBUG
    * in their development environments.
    */
    define('WP_DEBUG', false);
    define('WP_ALLOW_MULTISITE', true);
    define('MULTISITE', true);
    define('SUBDOMAIN_INSTALL', false);
    $base = '/';
    define('DOMAIN_CURRENT_SITE', 'alphamare.ca');
    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');

  • phillcoxon

    That explains the define('DOMAIN_CURRENT_SITE', 'digitalensite.com') then :slight_smile:

    Make sure you edit both of those posts to remove AUTH keys and database passwords.

    Who are you hosting with?

    A couple of weeks ago I had to move a client's multi-site install from their hosting provider (ipage.com) to another one because they were having exactly the same problem with sub-sites not showing up.

  • Timothy Bowers

    Hey there.

    If I go to http://alphamare.ca/en/ (which is supposed to be the home page) I get a directory listing, Index of /en/, with just the parent directory showing in the list.

    Does that folder actually exist on your host?

    Check with FTP and if it does then please remove and allow WordPress to handle it.

    I am not trying to create a big network, just two identical sites, with one in English and one in French.

    You might like WPML:

    http://wpml.org

    You can do multiple languages on a single site and multisite.

    Let me know.

    Take care.

  • Timothy Bowers

    Hey again.

    If you didn't create those folders something must have, this could be a plugin or theme I suppose. It could also be someone who has access to your host.

    Might be worth siding with caution and just asking your host to see if they see anything iffy. It probably was just a plugin somewhere or something forgotten but better safe than sorry.

    WordPress certainly hasn't done that to me before.

    Take care.

Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.