• I’ve had 2 multisite installs humming along for a year or two…hosted via 2 separate accounts with Siteground.com.

    The two sites are:
    11trees.com
    inndii.com

    I was paying for two separate accounts, so I’ve wanted to consolidate…

    I successfully moved inndii.com to 11trees.com/inndii.

    Everything works except for the redirects for the domains I own and point to subdomains on inndii.com.

    You can see the difference by visiting edunbound.inndii.com (which won’t redirect) and goldenviolins.com, which SHOULD redirect but doesn’t. It should redirect to goldenviolins.inndii.com but appear to users as GoldenViolins.com.

    Again, this worked fine for a year+ when Inndii had its own account.

    I’ve read that you can’t do “folder installs” for multisite…but I’m not sure this is the same thing…

    Again, everything is working just fine except redirects.

    When you visit goldenviolins.com or rabbitsfeathersandbone.com you get redirected to the root – inndii.com.

    I have these two domains set up via Domain Mapping in the Network Setup, just as I did when inndii.com had its own hosting account.

    Here’s my root (public_html/.htaccess) .htaccess (11trees is installed in /live):

    RewriteEngine On
    RewriteCond %{HTTP_HOST} ^edunbound\.com$ [OR]
    RewriteCond %{HTTP_HOST} ^www\.edunbound\.com$
    RewriteRule ^/?$ "http\:\/\/inndii\.com" [R=301,L]
    
    RewriteCond %{HTTP_HOST} ^goldenviolins\.com$ [OR]
    RewriteCond %{HTTP_HOST} ^www\.goldenviolins\.com$
    RewriteRule ^/?$ "http\:\/\/inndii\.com\/" [R=301,L]
    
    RewriteCond %{HTTP_HOST} ^rabbitsfeathersandbone\.com$ [OR]
    RewriteCond %{HTTP_HOST} ^www\.rabbitsfeathersandbone\.com$
    RewriteRule ^/?$ "http\:\/\/inndii\.com" [R=301,L]
    
    RewriteEngine On
    RewriteCond %{HTTP_HOST} ^11trees.com [NC]
    RewriteRule ^(.*)$ http://www.11trees.com/$1 [L,R=301]
    
    RewriteBase /live/
    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’s the .htaccess for the inndii directory:

    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ - [L]
    
    # uploaded files
    RewriteRule ^files/(.+) wp-includes/ms-files.php?file=$1 [L]
    
    # add a trailing slash to /wp-admin
    RewriteRule ^wp-admin$ wp-admin/ [R=301,L]
    
    RewriteCond %{REQUEST_FILENAME} -f [OR]
    RewriteCond %{REQUEST_FILENAME} -d
    RewriteRule ^ - [L]
    RewriteRule ^(wp-(content|admin|includes).*) $1 [L]
    RewriteRule ^(.*\.php)$ $1 [L]
    RewriteRule . index.php [L]
    
    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ - [L]
    
    # uploaded files
    RewriteRule ^files/(.+) wp-includes/ms-files.php?file=$1 [L]
    
    # add a trailing slash to /wp-admin
    RewriteRule ^wp-admin$ wp-admin/ [R=301,L]
    
    RewriteCond %{REQUEST_FILENAME} -f [OR]
    RewriteCond %{REQUEST_FILENAME} -d
    RewriteRule ^ - [L]
    RewriteRule ^(wp-(content|admin|includes).*) $1 [L]
    RewriteRule ^(.*\.php)$ $1 [L]
    RewriteRule . index.php [L]
Viewing 3 replies - 1 through 3 (of 3 total)
  • Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    🏳️‍🌈 Advisor and Activist

    You can see the difference by visiting edunbound.inndii.com (which won’t redirect) and goldenviolins.com, which SHOULD redirect but doesn’t. It should redirect to goldenviolins.inndii.com but appear to users as GoldenViolins.com.

    Are you really trying to redirect or are you trying to map domains?

    Redirect means GoldenViolins.com changes the URL to goldenviolins.inndii.com

    Mapping means GoldenViolins.com shows the content from goldenviolins.inndii.com but keeps its URL.

    Again, this worked fine for a year+ when Inndii had its own account.

    Okay, do you remember how you set it up on it’s own account? You may have forgotten to change your DNS settings.

    I’ve read that you can’t do “folder installs” for multisite…but I’m not sure this is the same thing…

    You mean can you map subfolder.com to domain.com/subfolder ? Yes you can.

    Thread Starter 11trees

    (@11trees)

    Mika,

    Thanks so much for taking a look…

    It seemed like redirect hell – the domains were correctly dropping a visitor onto inndii.com, but multisite wasn’t routing visitors to the subdomains.

    So I gave up and just copied the multisite install into sub folders and did some light editing of each copied database and wpconfig to have the appropriate site show up.

    So I’ve resolved/kludged my particular situation (I think) but not resolved the underlying question.

    I saw a bunch of similar questions in the forum that were never addressed and figured this would be too knotty of a problem.

    I’m not adding new sites to the setup and so will just need to update 4 different WP installs rather than the elegance of one MU instance.

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    🏳️‍🌈 Advisor and Activist

    The most likely answer is that you did ‘something’ wrong while moving the sites.

    Honestly it’s the hardest thing to get right, merging and splitting sites. The ‘easiest’ thing would be to

    1) make one site (inndii.com) the multisite

    2) create the subdomain subsites (goldenviolins.inndii.com)

    3) do the classic WP export/import to bring the content over

    4) Change the DNS so goldenviolins.com points to where inndii.com is installed

    5) Use a domain mapping plugin to map the domain within WordPress

    6) Use the InterconnectIT search/replace – https://github.com/interconnectit/Search-Replace-DB – and search ONLY the new posts table for goldenviolins.inndii.com to change links to goldenviolins.com

    Yeah, easy is subjective, I know.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Complicated Multisite Move…Advice Really Needed…’ is closed to new replies.