Modx Multidomain when domains are not aliases


I will write in english, because I don't have russian keyboard, but feel free to reply in russian.

I have domains on one server with the same IP address, but in different directories (virtual domains?):

/same/same/domains/ — modx install here
/same/same/domains/ — copies of .htaccess, index.php and config.core.php here

I use one of contexts routing plugins and there are no problems when I make a virtual subfolder or make as alias to — everything functions as expected. But the problem is, that I can't point as alias to, since I need some independence — create separate emails, have its own folders — and my hosting provider doesn't let to do this if the domain is set up as pointing/alias.

What I did so far is I put .htaccess, index.php and config.core.php to The site loads under Friendly urls seems to function, pages load, but what doesn't function are paths — since paths are based on base_url, no /style/, /js/ or even /assets/ folders contents display because they are not physically on

Of course I could indicate in templates full web address for /styles/ or /js/ folders, but for /assets/ folder this doesn't work. Neither can I not set up paths for Media Sources to work in

So my question is — how to set up modx multidomain install when domains are on the same server but are not aliases? Is this possible? What else needs to be changes besides putting .htaccess, index.php and config.core.php in root?

Thank you.
05 марта 2016, 10:14
1 967

Комментарии: 1

Василий Наумкин
05 марта 2016, 15:37
Try to use this article —

No subfolders, no web-server settings, just one MODX plugin and some context settings.
    Авторизуйтесь или зарегистрируйтесь, чтобы оставлять комментарии.