I am trying to send a finished website live for a client on EE 6.2.7. Call it Site2. In development, it has been on a sub-domain demo.[domain2].com and I simply want to make it available on the main www.[domain2].com, no need to move files on the server or anything. When I move it to www. it returns a blank page in the browser (same for the CP login at /admin.php). If I move it to a different sub-domain like test.[domain2].com it displays fine again. The same issue is replicated if I put the site on a completely different domain as a test.
It is a multisite installation, so there is an existing website Site1 on a different domain1 pointing to the root folder with EE installed; Site2 points to root/site2/ with its own index.php and admin.php files there. I updated www.[domain2].com in the relevant places in those files and in the URL and Path Settings of the dashboard. I know it possible to add to the config.php file in the main EE installation but I am wary of adversely affecting the existing website that sits on the root folder.
After research, I have tried the following without success:
In case relevant, when not trying to point it at the new site on EE6, domain2 points at the client’s current site on EE2, which is a separate directory on the server.
It seems such a crazy small thing that is preventing me sending the site live on the main domain, but am at a loss how to solve! Any suggestions, please?
Thanks for the suggestion. Admittedly, I don’t yet massively understand DNS so I asked the web host to check whether the domain’s DNS looks right in the circumstances and they seemed to think it looked alright.
Last year, I did an almost identical migration from a demo sub-domain to the main domain of the existing Site1 on this multisite installation, and it went a lot smoother than this!
To close this topic off:
Via EE Support, eventually worked out what was causing the blank site on the main domain. It was a combination of still using an old PHP version (5.x) on that domain as required by the client’s existing site (which was 11 years old and built on EE2) and a small bit of code in the Assets add-on for the new site that was not playing nice with PHP 5, so causing the site not to load properly. When I had been building the site on the demo sub-domain it had been using a modern PHP version, so the conflict didn’t present itself.
EE updated the Assets piece of code for greater compatibility, which fixed the issue and got the site displaying, and then I updated the domain/site to PHP 7.x anyway.
Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.