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.

Expression Engine for subdirectory

August 14, 2014 1:20pm

Subscribe [2]
  • #1 / Aug 14, 2014 1:20pm

    clew

    1 posts

    Hi all,

    For my company we have expression engine working beautifully for our main site, let’s call it:

    http://www.something.com

    We installed expression engine in the /expressionengine subdirectory and thus to display the EE generated component of our home page, we have the RewriteRule within the .htaccess folder as such:

    RewriteRule ^$ /expressionengine/index.php/home/$1 [L]

    This is great, but we are expanding to other countries, and while setting environment variables we can achieve the german version of the homepage at:

    “www.something.de” by using the same RewriteRule, this doesn’t work if I want to display the german version of the home page in a subdirectory: http://www.something.com/de/

    using:

    RewriteRule ^de/$ /expressionengine/index.php/home/$1 [L]

    That just redirects me to “www.something.com” and shows me the US version of the homepage, where the intended effect should be to show me the Germany home page at “www.something.com/de/”.


    Given all of this, can a Expression Engine template/structure be configured to work on both the root directory and subdirectory?  Would I need to purchase the Multiple Site Manager to achieve this even though the “new site” is within a subdirectory?

    Thanks in advance!

  • #2 / Aug 22, 2014 5:21am

    Rob Allen

    3118 posts

    Welcome to the forums.

    I think I’d bite the bullet on this one and relocate the EE install in the root, that will make it a whole lot easier for adding new MSM sites and save you a lot of hassle with .htaccess.

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

ExpressionEngine News!

#eecms, #events, #releases