Issue with Multi-site install/set-up on a subdomain
-
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
- The topic ‘Issue with Multi-site install/set-up on a subdomain’ is closed to new replies.