You can’t.
Currently Multisite will not work out of a subdirectory, like Single Site does. You have to move WP to root if you want it in root :/
Thread Starter
jhauer
(@jhauer)
Can anyone point me to a resource that can guide me through moving Multisite to root? Since I won’t be adding new sites can I get away with pointing the domain name through DNS to the wordpress folder and changing htaccess to remove the subdirectory?
http://codex.wordpress.org/Moving_WordPress#Moving_WordPress_Multisite
ETA: You may be able to get away with the DNS change, but I don’t know anyone who tried (and documented) it.
Thread Starter
jhauer
(@jhauer)
Thanks, I’m going to try DNS change. I’ll report results here.
Thread Starter
jhauer
(@jhauer)
Okay, I pointed my domain at the subdirectory in which multisite was installed.
Changed one line in htaccess:
RewriteBase /wordpress/
to
RewriteBase /
Then changed lines in wp-config:
$base = '/wordpress/';
define('DOMAIN_CURRENT_SITE', 'www.an-animation.com');
define('PATH_CURRENT_SITE', '/wordpress/');
To
$base = '/';
define('DOMAIN_CURRENT_SITE', 'www.an-animation.com');
define('PATH_CURRENT_SITE', '/wordpress/');
This results in the root domain are showing the home page but all subsequent links still go to the “wordpress” subdirectory. When I attemp to change ‘PATH_CURRENT_SITE’ to the root directory I get a database error.
Does anyone have a suggestion on improving this. I’m not crazy about edit the db in MySQL but will try it if that’s what I need to do.
This:
define('PATH_CURRENT_SITE', '/wordpress/');
Remove /wordpress, make it just /
Thread Starter
jhauer
(@jhauer)
That gives me an “Error establishing database connection”. Is there a db fix required?