new WP install alongside a subdirectory multisite on the same domain
-
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!
- The topic ‘new WP install alongside a subdirectory multisite on the same domain’ is closed to new replies.