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 i switch a secondary site as the default site in MSM?

August 26, 2011 12:56pm

Subscribe [1]
  • #1 / Aug 26, 2011 12:56pm

    lincolnpixel

    83 posts

    Hi,

    Need to make a secondary site the primary site in MSM, site.com/en to site.com?
    any help?

    Thanks

  • #2 / Aug 26, 2011 8:35pm

    Derek Jones

    7561 posts

    Hey lincolnpixel,

    The best way would depend on your needs.  Are you just needing for example site 2 to appear as the main site at the domain?  Or do you have some need for the site id’s to actually be switched?

  • #3 / Aug 26, 2011 8:42pm

    lincolnpixel

    83 posts

    Thanks Derek,
                just…  site 2 to appear as the main site at the domain, though site 2 have urls like this site.com/en
    en is the folder in which i’ve the duplicated index.php and admin.php
    clear enough?

    Thanks

  • #4 / Aug 26, 2011 8:47pm

    Derek Jones

    7561 posts

    All it sounds like you need to do then is modify the index.php file in the main domain to tell it which site to use, and to modify the Site URL setting of Site 2 to reflect its new home.  If you have any other preferences where you have specified a URL that will change as a result of this, you will need to update those settings as well.

    http://ellislab.com/expressionengine/user-guide/cp/sites/domainsetup.html

  • #5 / Aug 26, 2011 9:19pm

    lincolnpixel

    83 posts

    Thanks Derek! got it working.

    THANKS

  • #6 / Aug 26, 2011 9:21pm

    Derek Jones

    7561 posts

    Glad to help!

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

ExpressionEngine News!

#eecms, #events, #releases