Add documentation on micro-site management once the domain has been created

Created on 10 July 2023, over 1 year ago
Updated 11 July 2023, over 1 year ago

Hi,
I'm interested in your module because I'm in a situation where I want to use domain to manage 10 specific sub-domains, then about 100 micro-sites managed by url aliases associated with the parent domain.

I'm opening this report to see if it would be possible to have a little more information on the management of this module once the new micro domain is created.

In my case, I'm on Drupal version 9.5, I've installed version 2.0.0-beta5 and I've tried the dev version. I enable the module.

I create a micro-domain based on the parent domain, with an alias "/my-first-micro-site", everything works fine at this level. In my list of registered domains, I have my micor site: "My first micro site".

Next, I create a "Homepage" node (in my example, the homepage is an administrable node, which is reproducible with any type of content), manually define the alias "/my-first-micro-site" and associate the new domain with it. I save. Then when I try to view my page, I'll be redirected (301) to the homepage of my main domain.

I also overloaded the expected home page alias of my micro domain (admin/config/system/). I therefore have an identical url alias between my domain configuration, node alias and the system configuration alias of this new domain's home page.

It's possible that my site is misconfigured, but I'd like to understand how you expect it to work once the micro-domain is created.

Thanks in any case for all your hard work so far!

Have a nice day!

Marc

💬 Support request
Status

Active

Version

2.0

Component

Documentation

Created by

🇷🇪Réunion Martygraphie Saint-Denis (Réunion)

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

  • Issue created by @Martygraphie
  • 🇷🇪Réunion Martygraphie Saint-Denis (Réunion)
  • 🇺🇸United States drpldrp San Francisco, CA

    I'm not really sure I fully understand.

    Regardless, maybe it's worth mentioning that Drupal and its core modules don't store data in a way that's per "domain".

    So you should be using Domain Configuration module to set Basic Site Settings per domain if you aren't already.
    It will let you do something like set a different front page per domain.

    Also note that core Path Alias is shared across all domains.
    You should use Domain Path module if you want aliases per domain.

  • 🇷🇪Réunion Martygraphie Saint-Denis (Réunion)

    Thank you for your feedback. I'm sorry if my message wasn't clear.
    Your module allows you to manage microsites based on the parent domain.

    Yes, I do use "Domain Configuration" to have different system configurations between my domain/subdomains/microdomains. And I would like to have Path Alias shared with all my domains. The Domain Path module doesn't meet my needs.

    In my case :

    1. I created a micro domain
    2. Then, I wanted to create a new content
    3. I attached the new micro domain in the Domain Access field of my content
    4. I put an path alias equal to the alias defined in the micro domain
    5. I save

    But when I try to access this new content, it redirects me (301) to the main domain's home page.
    So I was wondering how it works on your side once a micro domain has been created.

    Sorry, I hope my message is more understandable :)

    Marc

  • 🇺🇸United States drpldrp San Francisco, CA

    I still can't reproduce your issue with the amount of info you've provided.

    Using your example, you should expect to see your page at /my-first-micro-site/my-first-micro-site, because the processed path should be in the pattern of /microsite-base-path/node-alias.

    What are the front page settings for both your parent domain and the microsite domain?

    Also, Domain Microsite module doesn't do any redirects, so the issue might be caused elsewhere.

    Domain Microsite just has an incoming path processor that removes microsite base path from the requested url, and outgoing path processors that prepend microsite base path to urls.

Production build 0.71.5 2024