• Resolved mawais31

    (@mawais31)


    I have a main website topschools.pk which will be deleted latter after configuration. the sub domain has cities top schools which is Multi sites wordpress. e.g. Islamabad.topschools.pk has Islamabad topschools and colleges. I have gone through configuring multi website on subdomain but it gives me “Error establishing a database connection”. however if I remove the Multi site config file setting the database error is removed but not a MPMU site.

    define( ‘WP_ALLOW_MULTISITE’, true );
    define(‘MULTISITE’, true);
    define(‘SUBDOMAIN_INSTALL’, false);
    $base = ‘/’;

    define(‘DOMAIN_CURRENT_SITE’, ‘mardan.topschools.pk’);
    define(‘PATH_CURRENT_SITE’, ‘/’);
    define(‘SITE_ID_CURRENT_SITE’, 1);
    define(‘BLOG_ID_CURRENT_SITE’, 1);

    it works fine but not a multi website .

    Could you please assist me in this regard ?

Viewing 1 replies (of 1 total)
  • Thread Starter mawais31

    (@mawais31)

    Solved this issue by checking database tables there were some tables where I didn’t change the path to my subdomain

Viewing 1 replies (of 1 total)
  • The topic ‘subdomain Multi website configuration’ is closed to new replies.