Back to Multi Domains Support


Hi, We are running into an issue with the plugin. We have 3 urls:


We've created aliases for these domains in directadmin:

  • points to
  • points to

All is well..

We've created bindings for these domains:

  • binds to theme1 and page1 of theme1
  • binds to theme1 and page2 of theme1
  • binds to theme2 and ALL_THEME_PAGES_WITH_ROUTE_PATCH

theme1 is the default theme selected in the settings. and work as expected. does not change the theme to theme2 on the frontend. It loads the default theme (theme1).

If i go to, theme2 is activated as current theme.

Enabling 'Allow debug mode with Url output' gives the following result when going to

array:14 [▼
  "theme" => "theme2"
  "pageurl" => ""
  "backfront" => "nouse"
  "usergroup" => ""
  "linksreplace" => 0
  "params" => ""
  "prefix" => ""
  "suffix" => 999
  "addget" => 0
  "rempagevar" => 0
  "domain" => ""
  "domain_with_suffix" => ""
  "is_protected" => 0
  "url" => ""

So it looks like it tries to load the right theme. But it always shows theme1(default). It even redirects to as it should in theme2. But still shows theme1.


Last updated



What is your current CMS-version? Try to exit the admin panel and check again (in the latest version of the plugin, work was done on binding the theme to the backend-user for pages editing in CMS, most likely the reason is because if you are authorized as a backend-user, then the corresponding theme for backend-user is automatically attached). For what domain do you have backend users permissions? (although this should not affect, because restrictions for backend user only work in backend). Try to reset the cache in the list of binds (sometimes it fails, if the record was edited). Hard mode enabled? I tested it on 461 build, did not reveal any deviations in the logic of work on the test server.

In general, judging by the given log, it should work correctly. Most likely, the error is somewhere at the cache level (This plugin, CMS, Web-server, Browser)

Last updated


Hi Linkonoid,

Our CMS version: 461

When setting theme2 as the default theme in mdomains settings, the correct theme is loaded. But the static pages content is not displayed in the page. The layout is displayed in the page.

Also, theme1 is loaded for and, and these work like a charm: loads content from static pages.

We suspect that never reaches your router: When enabling debug mode from the mdomain settings, and show the routing debug array. does not.

Also, the problem seems to occur with the ALL_THEME_PAGES_WITH_ROUTE_PATCH option: when creating a binding from to the business page, everything is fine, static page content of the business page is shown. But we do not want to create seperate bindings for all pages on our website.

Hope i've supplied you with enough info.

1-3 of 3