• Resolved lizmcreations

    (@lizmcreations)


    Ok, Here is my situation. I have a client using GoDaddy hosting with multiple domains. I have a wordpress install in the “main” domain of https://www.rhysmethod.com, wordpress installed in https://www.rhysthomasinsitute.com (which for the hosting is /rhysthomasinstitute/) and wordpress installed at students.rhysthomasinstitute.com —–

    I am running multi-site at students.rhysthomasinstitute.com — using the “/username/” method – so the sub-blogs would be https://students.rhysthomasinstitute.com/elizabeth — everything on that end is/was working fine. BUT, the main site is no longer visible and I can’t login to the dashboard of the main site (www.rhysmethod.com) …

    This is what was supposed to be added to the wp-config file:

    define( 'MULTISITE', true );
    define( 'SUBDOMAIN_INSTALL', false );
    $base = '/';
    define( 'DOMAIN_CURRENT_SITE', 'students.rhysthomasinstitute.com' );
    define( 'PATH_CURRENT_SITE', '/' );
    define( 'SITE_ID_CURRENT_SITE', 1 );
    define( 'BLOG_ID_CURRENT_SITE', 1 );

    I see where I need to change base to ‘/students/’ – because that is the actual path to the wordpress install and the same for path to current site ‘/students/’ (or should it be ‘/students’ — without the trailing ‘/’?

    But my bigger issue is the change to the .htaccess file, I can’t figure out what changes I need to make to that file to show it that the install is in /students/ not /

    here is what it says to put in the .htaccess file:

    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ - [L]
    
    # uploaded files
    RewriteRule ^([_0-9a-zA-Z-]+/)?files/(.+) wp-includes/ms-files.php?file=$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]

    Thank you in advance.

    Liz Martinez

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter lizmcreations

    (@lizmcreations)

    Ok, I’ve got the main site back up – had to change the wp-config/restore it to before I enabled multi-site.

    So, when I enable multi-site this is what it tells me to add to the students.rhysthomasinstitute.com wp-config file:

    define( 'MULTISITE', true );
    define( 'SUBDOMAIN_INSTALL', false );
    $base = '/';
    define( 'DOMAIN_CURRENT_SITE', 'students.rhysthomasinstitute.com' );
    define( 'PATH_CURRENT_SITE', '/' );
    define( 'SITE_ID_CURRENT_SITE', 1 );
    define( 'BLOG_ID_CURRENT_SITE', 1 );

    But if I do that it effects the install at https://www.rhysmethod.com (the base hosted domain). Here is what I changed it to:

    define( 'MULTISITE', true );
    define( 'SUBDOMAIN_INSTALL', false );
    $base = '/students/';
    define( 'DOMAIN_CURRENT_SITE', 'students.rhysthomasinstitute.com' );
    define( 'PATH_CURRENT_SITE', '/students/' );
    define( 'SITE_ID_CURRENT_SITE', 1 );
    define( 'BLOG_ID_CURRENT_SITE', 1 );

    Here is what it says to put in the .htaccess file:

    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ - [L]
    
    # uploaded files
    RewriteRule ^([_0-9a-zA-Z-]+/)?files/(.+) wp-includes/ms-files.php?file=$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]

    this is what I changed it to:

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

    But with those changes I am getting the error “can’t access the database” …. does anyone have any suggestions?

    Thanks,

    Liz Martinez

    Thread Starter lizmcreations

    (@lizmcreations)

    I figured it out. The wp-config of the main hosted domain – not the one I wanted networked – got changed somehow.

    Thanks.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Issue with Multi-site install/set-up on a subdomain’ is closed to new replies.