0

I have a blog content type. My client would like the domain to be blog.example.com for only that content type. I would like to know the best way to approach this, whether it be a rewrite rule or using Domain Access Module.

I have installed the Domain Access module, and created my primary domain (example.com) and another domain (blog.example.com) for the blog - but am now not sure how to go about assigning that domain for my blog content type.

Any advice is much appreciated - please keep in mind this is for Drupal 8.

0

In hook_ENTITY_TYPE_view_alter you can check for your content type and redirect here. Lets give a try , maybe it will help

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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