ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

Moving an EE install from a sub directory to site root

January 29, 2011 12:27am

Subscribe [3]
  • #1 / Jan 29, 2011 12:27am

    Roi Agneta

    352 posts

    I built an EE site that will replace a Joomla installation (and the client is already ecstatic!).  I created the EE install in a subdirectory of the site so the Joomla site shows up as usual, but the client can access the EE site at “mysite/ee”.  Everything is working fine, so I am ready to make the site live.

    My question: what is the best approach to doing this, meaning the minimal amount of changing paths in various files?  Can I just move the index.php from the subdirectory to the site root and update the system folder path in that file?

    Tks

    Roi

  • #2 / Jan 30, 2011 11:06am

    Greg Salt

    3988 posts

    Hi Roi,

    We do have some information about how to do this in our documentation.

    Cheers

    Greg

  • #3 / Jan 30, 2011 12:07pm

    Roi Agneta

    352 posts

    Hi Greg - yes, I had looked at that information, which is why I posted the question. :cheese:

    In the end I decided to set up a trial situation on my development server and work it out there.  Since I imagine this is a pretty common situation, here is what I did:

    Renamed the index.php and the images folder from the original site
    Moved the new index.php and image folders from the sub directory to the root (I moved the images folder so I would not have to change all the references in my CSS)
    Modified the index.php file reference to the System Folder
    Modified the directory paths in my file uploads preferences (which point to sub directories in the images folder)
    Finally, modified the path to my the site root in the CP

    Et voila!

  • #4 / Jan 31, 2011 9:09am

    Sue Crocker

    26054 posts

    Hi, Roi. Thanks for posting your solution. Sounds like this would make a great EEWiki idea. 😊 Hint-hint.

    Don’t hesitate to post again as needed.

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases