Skip to content
General Revolution Evolution Add-ons International
Login | Register | MODX.com
MODX Open Source Content Management System, Framework, Platform and More.
Find a Partner | Hosts + SaaS | Jobs | Donate
  • RegisterSign Up with the MODX Community
  • LoginUse Your MODX.com Account
  • MODX Community Forums
  • Add-ons
  • Manager, Parser & the Core
  •  
  • <
  • 1
  • 2
  • 3
  • ...
  • 11
  • 12
  • >
  • Managing multiple Domains / sub sites with MODx#

  • 17883
    1,039
    MODx deutsch | Webdesign Karlsruhe | Ressourcen für Webdesign

    MadeMyDay Reply #1, 2 years, 9 months ago

    Reply
    • Link to this post#1
    Just finished the first version of a tutorial which describes the usage of MODx for managing multiple domains / sub sites without hacking the core.

    Tutorial: Multiple domains / sub sites with MODx
    Feedback welcome!


  • 28042
    14,561
    How MODx Evo WorksLog in to an Evo Manager username guest, password guestuser.

    sottwell Reply #2, 2 years, 9 months ago

    Reply
    • Link to this post#2
    Wonderful stuff


  • 1611
    589

    andrnag Reply #3, 2 years, 9 months ago

    Reply
    • Link to this post#3
    Nice tutorial! I'll try it on my project and tell about results.


  • 25483
    740
    with regards,

    Ronald Lokers
    'Front-end developer' @ h2o Media

    ronaldlokers Reply #4, 2 years, 9 months ago

    Reply
    • Link to this post#4
    Very nice! I think I can use this for a upcoming project


  • 1611
    589

    andrnag Reply #5, 2 years, 9 months ago

    Reply
    • Link to this post#5
    While using tag like this:
    <html xmlns="http://www.w3.org/1999/xhtml">
    
    


    When we are on general Home (e.g. on 404) plugin replaces this line to
    index.html xmlns="http:/www.w3.org/1999index.html">
    

    so it become viewable on the top of page.

    I think the problem is somewhere in unrigorous regexp in "multisite" plugin.

    UPD:
    I just localize the problem: this was happening when I haven't domain specific 404 page, so modx go to default 404 page (from settings) AND on the general 404 page TV "host" is not specified. So regexp bugging.

    Hence the question follows that which domain would I set in TV in general pages?


  • 1611
    589

    andrnag Reply #6, 2 years, 9 months ago

    Reply
    • Link to this post#6
    So, I found the reason.
    Then TV is blank, this regexp
    $modx->documentOutput=preg_replace("#/?".$host_url.".html#i","index.html", $modx->documentOutput);
    match <html> tag
    You just need to escape "." like this
    $modx->documentOutput=preg_replace("#/?".$host_url."\.html#i","index.html", $modx->documentOutput);


  • 10449
    944
    http://www.screengang.com/
    http://www.dnik.ch/
    http://www.fantastique.ch/
    http://www.flickr.com/photos/dnik/

    ganeshXL Reply #7, 2 years, 9 months ago

    Reply
    • Link to this post#7
    Awesome news. Thanks for this tutorial! Makes me want to buy 3 random domains just to test this out :-)


  • 1611
    589

    andrnag Reply #8, 2 years, 9 months ago

    Reply
    • Link to this post#8
    Quote from: ganeshXL at May 08, 2009, 07:22 AM
    Makes me want to buy 3 random domains just to test this out :-)
    Ha! You can do it on local server where you can make 100 domains :-) Or, it also work with subdomains of 3rd level. Any what you want!


  • 17883
    1,039
    MODx deutsch | Webdesign Karlsruhe | Ressourcen für Webdesign

    MadeMyDay Reply #9, 2 years, 9 months ago

    Reply
    • Link to this post#9
    match <html> tag
    You just need to escape "." like this

    Thx! I corrected this in the tutorial. Wasn`t a problem for me since I don`t have a standard domain ;-)


  • 10449
    944
    http://www.screengang.com/
    http://www.dnik.ch/
    http://www.fantastique.ch/
    http://www.flickr.com/photos/dnik/

    ganeshXL Reply #10, 2 years, 9 months ago

    Reply
    • Link to this post#10
    @Andrey Nagikh: how would I do that? Edit the httpd.conf file directly? Or add a few lines to the HOSTS file (I'm on Windows XP using a regular WAMP install) ?


  • <
  • 1
  • 2
  • 3
  • ...
  • 11
  • 12
  • >



Actions

Login to Post

Other Support Options

To file a bug or make a feature request visit our issue tracker, or you can also purchase commercial support.

Love MODX?

If you build sites for a living with MODX or just love using it, why not give back?

Information

Posted in this thread:
BobbyG66, Dimmy, Kuriko, Lammikko, MadeMyDay, Phantomik, Pier2Design, Sloopmeester, TomMLS, andrnag, chetan, ganeshXL, greenmagic, gruve, heimdall, krasotina, labasus, modx.customize, onesmarthost, opengeek, outre99, puschpull, queeckee, rav3n, redtoad, ronaldlokers, sal, sharkbait, sottwell, sqlshawn, titanium, tspore, worchyld

 
Back to Top

MODX Global HQ

1333 N Stemmons Fwy, Ste 110
Dallas, TX 75207
United States

+1 (469) 777-MODX (6639)

The MODX Company

  • Contact
  • Media Center
  • Work at MODX
  • Wall of Fame
  • The MODX Blog

Sponsors

SoftLayer Firehost: Secure Cloud Hosting

Stay Connected

Read our previous email newsletters.

Twitter Facebook Google+ LinkedIn github Feeds

Privacy Policy | Terms of Service | Pixels by AKTA Web Studio© 2005-2012 MODX. All rights reserved. Trademark Policy