Forums

WordPress MultiSite Domain Change / Domain Mapping Problem (9 posts)

  1. ddjjmm
    Member
    Posted 1 year ago #

    Hey folks,

    I installed WordPress with MultiSite Support on a directory:
    http://www.servername.de/wordpress

    Now the website is ready and should be accessible under http://www.mydomain.de instead of the link above.

    I tried to install domain mapping plugin but it doesn't work because I didn't install wordpress in the root direcotry (here: http://www.servername.de/).

    So how can I get the new url workin? of course I can add a redirect via the webhoster but then the servername url will be shown in the browser.

    Just thought about 2 options:
    1) moving wordpress files to the root
    2) editing files and database manual for a url replacement ?!

    but in both cases I don't know the exact way to do. Any suggestions?

    Only Problems with multisite :(

  2. I installed WordPress with MultiSite Support on a directory:
    http://www.servername.de/wordpress

    There's your problem. You can't do that.

    Move WordPress from /wordpress to just http://www.servername.de/

  3. ddjjmm
    Member
    Posted 1 year ago #

    How can this be done correctly?

    What files / databases will I have to edit exactly?

  4. esmi
    Theme Diva & Forum Moderator
    Posted 1 year ago #

  5. ddjjmm
    Member
    Posted 1 year ago #

    In the wp-config.php I have the following entries:

    PHP Code:

    define ('MULTI-SITE', true);
    define ('SUBDOMAIN_INSTALL', false);
    $ Base = '/ dev / wordpress /';
    define ('DOMAIN_CURRENT_SITE', 'name.server4you.de');
    define ('PATH_CURRENT_SITE', '/ dev / wordpress /');
    define ('SITE_ID_CURRENT_SITE', 1);
    define ('BLOG_ID_CURRENT_SITE', 1);

    , and my dev / wordpress / .htaccess looks like this:
    PHP Code:

    RewriteEngine On
    RewriteBase / dev / blog /
    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]

    Database entries, I'd have to modify in the following Dabell by hand:

    DEVwp_postmeta
    DEVwp_site
    DEVwp_options
    DEVwp_blogs
    DEVwp_usermeta

    Since I've at least found a direct URL entries.

  6. And Moving WordPress Multisite which is, alas, more complicated :(

  7. ddjjmm
    Member
    Posted 1 year ago #

    Yeah and that's the big problem! :(

    Seem to me that the only way to get worpdress working on the "LIVE URL" is to setup a new multisite system and integrating the old one?

    Think that will be very hard too?!

    Backup and Importing the old stuff would lead into similar problems?

  8. If you edit the files, move everything, and then search the database for /foldername/ (whatever / dev / wordpress / really is), you SHOULD be able to just change that to / and be okay, but make backups first!

  9. Andrea_r
    team pirate
    Posted 1 year ago #

    Seem to me that the only way to get worpdress working on the "LIVE URL" is to setup a new multisite system and integrating the old one?

    No, not necessarily.

    In *your* case, since the original install is off in a subfolde,r then yes.

    But it is not true for everyone.

Topic Closed

This topic has been closed to new replies.

About this Topic