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.

MSM and Virtual Subdomains

April 19, 2011 4:26pm

Subscribe [2]
  • #1 / Apr 19, 2011 4:26pm

    bsrweb

    24 posts

    Greetings,

    I’m using Engine Hosting and for the life of me and a PHP developer, we cannot get EE and MSM working on their system. I’ve emailed Engine Hosting tech support and they claim all is working fine on their end and referred me to this forum.

    My PHP developer thinks that the way Engine Hosting sets up virtual domains, via htaccess rules, is incompatible with how MSM works. Can someone share any details on how MSM is supposed to work using subdomains?

    * Using EE 2.1.3, MSM 2.0
    * MSM works perfectly on my development environment (using MAMP)
    * The only difference between my dev machine and production at Engine Hosting is the added htaccess rules required by Engine Hosting to serve files from a subdomain

    htaccess rules:
    RewriteEngine On
    RewriteBase /
    RewriteCond %{HTTP_HOST} ^conference-planning.thebusinessofabetterworld.org/* [NC]
    RewriteCond %{REQUEST_FILENAME} !conference-planning
    RewriteRule ^(.*)$ conference-planning/$1 [L]

    ‘conference-planning’ is the second website; default website is http://www.thebusinessofabetterworld.org

  • #2 / Apr 19, 2011 9:58pm

    bsrweb

    24 posts

    Update: I got confirmation from Engine Hosting support that virtual sub-domains and EE work perfectly fine (thanks, Greg!).

    But:

    [1]  I ported our EE site to another web host, Media Temple, and our EE site works perfectly there.

    Media Temple:
    http://conference-planning.thebusinessofabetterworld.com/en/speakers/list/2010/status/confirmed

    Same URI on Engine Hosting:
    http://conference-planning.thebusinessofabetterworld.org/en/speakers/list/2010/status/confirmed

    [2] If I remove the ‘en/’ from the URI above, the correct template is loaded and our site works perfectly again on Engine Host’s system.

    The main different between Media Temple and Engine Hosting seems to be that with Engine Hosting, (a) I have to add those htaccess rules whereas on Media Temple, I didn’t; and (b) I also had to disable the Open Basedir rule on Media Temple.

    I relayed this info to Engine Hosting support and they’re looking at it but they again referred me back to this forum as they think it’s still an issue with EE.

    The ‘en’ in the URI is a global variable so our visitors can switch languages on our website and I’m using the language-switching technique from the EE wiki:
    http://expressionengine.com/wiki/Multi_language_site_alternative/

    So, I guess my question is: what am I doing wrong? Is there something in the htaccess rules that I should change?

  • #3 / Apr 20, 2011 4:21am

    John Henry Donovan

    12339 posts

    bsrweb,

    Can you just explain your directory set-up on EngineHosting please.

    Do you have a folder called ‘en’?
    Do you have a copy of the root index.php inside of it?
    Have you added your global variable to that index.php?
    Do you have a htaccess file inside the ‘en’ folder also?

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

ExpressionEngine News!

#eecms, #events, #releases