• Hello,

    I’ve just transferred everything from my old WP multisite to a new domain.

    I had to create a fresh wp-config file to get the site up and running.
    So, I enabled multisite by adding this code:

    /* Multisite */
    define( ‘WP_ALLOW_MULTISITE’, true );

    Then, I went to network setup where I was instructed to add this code to the wp-config:

    define(‘MULTISITE’, true);
    define(‘SUBDOMAIN_INSTALL’, false);
    define(‘DOMAIN_CURRENT_SITE’, ‘ridecambodia.com’);
    define(‘PATH_CURRENT_SITE’, ‘/’);
    define(‘SITE_ID_CURRENT_SITE’, 1);
    define(‘BLOG_ID_CURRENT_SITE’, 1);

    and this code to the .htaccess:

    RewriteEngine On
    RewriteBase /
    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).*) ridecambodia/$2 [L]
    RewriteRule ^([_0-9a-zA-Z-]+/)?(.*\.php)$ ridecambodia/$2 [L]
    RewriteRule . index.php [L]

    First, I will note that this changed the dashboard a bit – it no longer has a ‘plugins’ tab in the menu and it no longer has the ‘network admin’ tab in the dropdown menu for ‘My Sites’.

    Secondly, when I try to visit the dashboard for my second site I get an Internal Server Error.

    I have checked everything with Godaddy and they confirm that everything is set up properly on their end.

    I’m totally lost. I’ve done heaps of Googling and although I’ve found similar stories, I can not find an answer that works for me.

    The website is:
    https://ridecambodia.com
    and the second site that I can’t access is https://ridecambodia.com/siem-reap/
    …although, if you follow the link for the second site it does go to the page but the layouts completely broken.

    I’ve copied all of the wordpress files in the folder ‘/ridecambodia’ as this is an additional domain on my hosting account.

    ANY help will be hugely appreciated!

    Thanks

Viewing 6 replies - 1 through 6 (of 6 total)
  • Could you instead of trying to move the site, keep the old working site and simply point the new domain to it – using your web host domain tools and the WordPress MU Domain Mapping plugin.

    Also have you ported the database over or changed references in it to the new site – here is a good tool for that:

    Thread Starter taj87

    (@taj87)

    Jelnet,

    Thanks for your suggestion. Unfortunately I had to copy the site over as I will also be modifying the old site on the old domain.

    Yes I imported the database to my new db user: ridecambodia
    I did then use a search and replace plugin to change all URLs to the new domain.

    There seems to be a lot of 500 errors on the site – this is sometimes caused by .htaccess issues. Try changing the following lines of your .htaccess:

    RewriteEngine On
    RewriteBase /siem-reap/
    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).*) ridecambodia/$2 [L]
    RewriteRule ^([_0-9a-zA-Z-]+/)?(.*\.php)$ ridecambodia/$2 [L]
    RewriteRule . /siem-reap/index.php [L]

    *Note the bits in bold to add – also backup the original first

    Thread Starter taj87

    (@taj87)

    Thanks again for your input Jelnet, but unfortunately that doesn’t change things… still getting the Internal Server Error ??

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Error moving multisite to new domain’ is closed to new replies.