WordPress.org

Ready to get started?Download WordPress

Forums

Point domain to multisite installed in subdirectory as if root (8 posts)

  1. jhauer
    Member
    Posted 2 years ago #

    In order to keep previous site live during development we installed wpmu in a subdirectory of the root. (http://an-animation.com/wordpress/). It's almost time to do live and I realized that the settings that normally allow you to redirect a WP install from a subdirectory to a root are not present in WPMU dashboard. If I have point the domain at the subdirectory where MU is installed it seems like I'll have problems. Any suggestions on how to accomplish this?

    We used WPMU strictly to allow qTranslate. No intention to add any additional aites in this install.

  2. 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 :/

  3. jhauer
    Member
    Posted 2 years ago #

    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?

  4. 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.

  5. jhauer
    Member
    Posted 2 years ago #

    Thanks, I'm going to try DNS change. I'll report results here.

  6. jhauer
    Member
    Posted 2 years ago #

    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.

  7. This:

    define('PATH_CURRENT_SITE', '/wordpress/');

    Remove /wordpress, make it just /

  8. jhauer
    Member
    Posted 2 years ago #

    That gives me an "Error establishing database connection". Is there a db fix required?

Topic Closed

This topic has been closed to new replies.

About this Topic