I’m about to begin building a friend’s web site in EE. He currently uses WordPress and wants to continue using it while the new site is being built.
Is it possible to install EE in the same directory on his server while the site is being built and still have WordPress functioning? OR is it easily possible to develop his new site in another directory and then migrate it once it’s ready to go live?
Yes and yes. Which I’d do probably depends on how locked down I need it to be.
For #1, just remember, all of the EE frontend ‘pages’ run through index.php. You may remove that with htaccess, but for EE to serve it up, it has to go through index.php somehow.
You can rename index.php. Rename it ee.php and now any URL with friends-site.com/ee.php/template_group/template is going to pull up an EE page. When you’re ready to go live, can either switch it to index.php or use htaccess to route everything through ee.php instead.
Do remember to use your default url variable in all setting where you need it, as it will make changing things easy. Though if all you’re doing is using ee.php instead of index.php, the main setting that will matter is the website index file setting.
Now- if you want option #2, make a folder ee and do all of your EE work there (by dropping an index.php file in there)- that’s when it will be really helpful to have used that global variable. When you want to go live, just move your index.php file up to root, change your url variable (and possibly your path variable) and you’re good.
Either way, should be easy. Just build things out so you aren’t hard coding anything you’ll want to change in a bunch of places.
Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.