Multisite in Subdirectory Problems
-
Hi,
I have installed WP multisite in a subfolder/subdirectory ( currently have my live site running in a different subfolder) and have it running with several sites. Now that everything is done, I want to make it live. I have followed all of the steps I have found (in many places). I have made sure the wp-config, htaccess and index.php files are correct and when I upload them I get the following error: Error establishing database connection. Any thoughts on what I am doing wrong?
Here is my wp-config code:
/* Multisite */
define(‘WP_ALLOW_MULTISITE’, true);
define(‘MULTISITE’, true);
define(‘SUBDOMAIN_INSTALL’, false);
define(‘DOMAIN_CURRENT_SITE’, ‘mtcs.org’);
define(‘PATH_CURRENT_SITE’, ‘/site/’);
define(‘SITE_ID_CURRENT_SITE’, 1);
define(‘BLOG_ID_CURRENT_SITE’, 1);Here is my htaccess code:
RewriteEngine On
RewriteBase /site/
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]Here is my index.php code:
/** Loads the WordPress Environment and Template */
require( dirname( __FILE__ ) . ‘/site/wp-blog-header.php’ );
- The topic ‘Multisite in Subdirectory Problems’ is closed to new replies.