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.

how can an EE template be made the home page of my site without moving the EE installation?

August 19, 2007 3:47am

Subscribe [2]
  • #1 / Aug 19, 2007 3:47am

    durk gardenier

    13 posts

    Hi,

    I have set up EE in a subdir (exen) of my existing site http://www.example.com, so it is now in http://www.example.com/exen. It all works so well that I no longer want to maintain the html of my old site, but to have the existing EE installation replace the old site.

    Is there a way to do this without moving the EE software from the subdir to the main dir?
    (I tried the “Make the index template in this group your site’s home page?” option when making a new template group but that does not do this job.)

    Would anyone know?
    Thanks in advance,
    Durk

  • #2 / Aug 19, 2007 4:13am

    Ingmar

    29245 posts

    Well, not really. If you have EE in a physical subdirectory, you must use that subdirectory in your URLs. The solution would be to move all of your files on level up, so to speak, and is really nothing to be afraid of. Having said that, if you insist, there’s probably something that could be done using mod_rewrite, but I advise against it.

  • #3 / Aug 19, 2007 4:27am

    durk gardenier

    13 posts

    OK thank you very much Imgar; I will give it a try.

  • #4 / Aug 19, 2007 10:51am

    Robin Sowell

    13255 posts

    Yep- I’d avoid mod_rewrite as well.  You should be able to just move up a copy of path.php and index.php- put those in the top level, edit the path.php so it still points correctly to your system folder (will be one more level down than it was)- then edit any paths in ‘Admin- System Prefs- General Config’ so that the path to your site is now mysite.com/ instead of mysite.com/exen/- and anywhere else you have paths such as weblog specific paths. 

    Either way would work- just need to be sure you catch all your path references.

  • #5 / Aug 20, 2007 4:18pm

    durk gardenier

    13 posts

    Thanks Robin, moving only path.php and index.php, and changing url settings worked perfectly. I have a gallery-based photobolg and I needed some experimenting, but did not give any problems.
    Best regards,
    Durk

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

ExpressionEngine News!

#eecms, #events, #releases