Multi Domains

Create multiple domains or url and bind this to arbitry theme or page/staticpage with extending routing rules use single CMS installation (support backend)

Back to Multi Domains Support

planetadeleste
planetadeleste

I have a subdomain devel for development of theme. The theme and selected page (home) load fine on selected domain devel.domain.com. But, other pages doesn't work. If I try to open devel.domain.com/about I get 404 not found.

Maybe I made something wrong.
Can you help me with that?

thanks

Linkonoid
Linkonoid

(Change in version 1.0.4 / Added mechanism bind one domain to all theme pages in one records). Plugin Mdomains create binding one domain (domain url) to only one page url. In menu links in theme replaces only domain (replace menu link in hand mode if structure base theme domain does not match with new). Please see http://linkonoid.com/backend/backend/auth/signin (admin/admin) test1 or test3 subdomains. In demo subdomain test1: theme link "/demo/ajax" replaces on "http://test1.linkonoid.com/demo/ajax" and bind to "http://test1.linkonoid.com/ajax" - result 404 (on base domain theme) if click on menu link (structure links do not match). And all Ok on test3.linkonoid/404 (structure one to one). What to do? Use this way: сreate new binding for about: devel.domain.com/about for theme "/about" page (if structure pages one to one ) and change menu links in hand mode (if structure do not match) . I'll think about adding functionality for automatic full routing change in case of structure mismatch (i.e. the full url, not just the domain). The theme menu not always possible to fix if the topic is active on another domain.

Last updated

planetadeleste
planetadeleste

I need something like Theme Preview but using domain or subdomain. At now, using your plugin, is not possible for multi-language sites, and for sites with a lot of items is a hard work to create each page as bind domain/page. It would great just to select theme and write domain or subdomain.

Thanks

Linkonoid
Linkonoid

I understood the essence of your task. In your case, you get a domain binding only to a topic without a specific page designation (page url not set in settings) - it should be somewhat easier to implement. I do not know yet how this will affect the operation of static pages. The plugin uses a "crutch" to bypass the private variables of the static page plugin. I'll try to make. In my case, initially, the task was to plant several domains-landings on one topic.

Last updated

Linkonoid
Linkonoid

I changed plugin code and published new version 1.0.4. Little testing on subdomain http://test2.linkonoid.com. Please see on my demo site http://linkonoid.com/backend/backend/auth/signin (admin/admin). Modification:

  • Added default page url "ALL_THEME_PAGES_WITH_ROUTE_PATCH". If this selected, all theme pages binding to one new domain (structure one-to-one).
  • Added support path new domain. If set domain path to "http://domain.com/demo", all theme pages, begin on "/demo", path route on new domain url.
  • On create new bind, auto setting on default options current default cms theme and page url "ALL_THEME_PAGES_WITH_ROUTE_PATCH".

Last updated

planetadeleste
planetadeleste

Wooow amazing !!!

This is exactly what I need !!! Can't wait to update

Thanks, very very very appreciated

planetadeleste
Linkonoid
Linkonoid

Always happy to help! Please see my free product for developers based on the super-fast Caddy server (works no worse than Nginx, very easy in the settings - 2 lines of code) with the pre-installed OctoberCMS on SQLite and the set of administration applications: https://github.com/linkonoid/caddywinphpserver

planetadeleste
planetadeleste

Looks good, but is for Windows. I work on linux environment.

Good luck
Thanks

Linkonoid
Linkonoid

Caddy compile for Linux. My test server linkonoid.com is running on the Debian with Caddy server (https://caddyserver.com/ - I'm participating in this community, it's written on Golang) with the SQLite database (it's more convenient to move the database from a working Windows machine to Linux without migrating and not spending time - just copy the file with the database). In any case, try Caddy - a very good server and from the "box" there is almost everything (HTTP/2, automatic https and more...), the config easy, and, moreover, this is compiled under all known platforms (for example, I installed it in the Debian chroot-environment on the router with Mips-processor: https://github.com/linkonoid/debian-keenetic-caddy and OctoberCMS works pretty not bad).

Thank! Good luck!

Last updated

1-10 of 10