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.

can a site's index.php come from a directory below the root folder?

January 11, 2012 4:13pm

Subscribe [2]
  • #1 / Jan 11, 2012 4:13pm

    is it possible to have the first page (index.php) come from a directory below the root folder rather than the Expression Engine index.php file? i tried using the redirect EE tag {redirect='http://mySite.com/2012/index.php'} in the index page of the template group but got an error message that the site was using a redirect. i need the index page to not use EE but all other pages to use EE.

  • #2 / Jan 11, 2012 4:33pm

    is moving all of EE to a folder lower than the root the answer?...just wanting to check before moving all those files and to make sure it is something that i won’t be causing a fatal error in trying…

  • #3 / Jan 12, 2012 6:48pm

    Sean C. Smith

    3818 posts

    Hi internet endeavor,

    If you place the following in your .htaccess file you can control the order of which file displays when at the root of the site. As long as index.php is after what you want to be used you should be fine.

    DirectoryIndex index.html index.php

    Please let me know if this works for you.

    Sean

  • #4 / Jan 23, 2012 9:53am

    Thank you, Sean…your suggestion has been most helpful!

  • #5 / Jan 23, 2012 6:12pm

    Sean C. Smith

    3818 posts

    Glad I could help. I’m going to close out this thread, but feel free to post again when you have more questions.

    Sean

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

ExpressionEngine News!

#eecms, #events, #releases