• I’ve inherited an existing multisite mysite.com installed at /www/mysite.com/public_html/ and I want to do a fresh WP install alongside it. My goal is to launch mysite.com/new as an internal test and then gradually migrate multisite into the new single site. So eventually mysite.com/new will become just mysite.com when the old site is ready to be retired. The existing multisite is subdirectory-based. The server is apache with a name-based vhosts config pointing mysite.com to /www/mysite.com/public_html/.

    I installed the new instance of WP to /www/mysite.com/public_html_new/ and in the vhosts file copied the existing entry for the old site and edited it to point mysite.com/new to /www/mysite.com/public_html_new/. I’ve given the new install appropriate ownership and permissions per WP documentation. I have provisioned an external database for the new site as well.

    My issue is that when I try to go to mysite.com/new, I get to the old site and not the new site. I need to be able to navigate to the new site and the old site.

    A portion of the .htaccess file in the old site (/www/mysite.com/public_html/) contains the following that may be relevant:

    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ - [L]
    RewriteCond %{HTTP_HOST} ^www\.mysite\.com [NC]
    RewriteRule ^(.*)$ http://mysite.com/$1 [L,R=301]
    #############
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteCond %{HTTPS} off
    RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
    </IfModule>
    #############

    Any help is appreciated!

    • This topic was modified 4 years, 7 months ago by Lena. Reason: tags and formatting
Viewing 2 replies - 1 through 2 (of 2 total)
  • I’de have went with a subdomain or a pair of subdomains.

    I’m not sure vhosts pays much attention to anything past the TLD so your /new/ gets passed as a parameter but the domain goes to the root domain.

    I could be wrong but the subdomain makes much more sense to me. subdirectories are fine but limit things when it comes to discerning the actual target paths.

    Try installing WordPress iside your public_html folder.
    Then create MySQL users and databases for your install of WordPress.
    Edit the wp-config.php and your .htaccess file
    Visit your website to test an install of WordPress.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘new WP install alongside a subdirectory multisite on the same domain’ is closed to new replies.