-1

Is there any way to automatically create subdomain for each node from some content type?

I have a lot of pages that should be created and each should be on separated subdomain, I'm trying to find the way to do that through current website on Drupal 8.

1 Answer 1

0

You could use an outbound path processor and modify $options['base_url'], see LanguageNegotiationUrl::processOutbound. This method is from a language negotiation plugin, but you can place directly in a service tagged path_processor_outbound, see Global preprocess for all links

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.