• I have spent the better part of the last few days trying to find a solution, but can’t seem to find anything with the following set of circumstances:

    1) WordPress installed through GoDaddy cpanel wizard
    2) Installed to /wordpress/ subdirectory.
    3) converted to multisite
    4) moved .htaccess and index.php to root of domain and amended to point to subdirectory.
    5) everything redirects and works fine when going to ‘site.com’, but get “Error establishing a database connection” when going to ‘www.site.com’.

    Any direction you can provide would greatly be appreciated.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Borge

    (@joeborge0914)

    Has this been added?

    /* Multisite */
    define( ‘WP_ALLOW_MULTISITE’, true );

    Should be in your w-config.php

    http://codex.wordpress.org/Create_A_Network

    Thread Starter jneljeff

    (@jneljeff)

    yes, along with:

    define(‘MULTISITE’, true);
    define(‘SUBDOMAIN_INSTALL’, false);
    define(‘DOMAIN_CURRENT_SITE’, ‘www.site.com’);
    define(‘PATH_CURRENT_SITE’, ‘/wordpress/’);
    define(‘SITE_ID_CURRENT_SITE’, 1);
    define(‘BLOG_ID_CURRENT_SITE’, 1)

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

The topic ‘Error Error establishing a database connection through www prefix only’ is closed to new replies.