I have a Drupal 9 multisite with a production server and a development server. I have Drupal 9 running on both servers. The development server is on a subdomain of the production domain.

Issue I am having is that many of the internal links route to the primary domain and not the subdomain on the developement server. How do I set Drupal 9 multisite on the dev server to to use the subdomain instead of the production domain?

Comments

ep_dlc’s picture

Apologies for the late reply. Is there any other answer beyond what sounds like a site installation? 

gisle’s picture

I suspect that the previous reply was AI-generated. It had nothing to do with your question. I have deleted it as spam.

How do I set Drupal 9 multisite on the dev server to to use the subdomain instead of the production domain?

I do not know of any global setting to do this. I have a similar requirement and what I do is to avoid using absolute links for internal links. Instead, I make all internal links relative to the webroot.

Unfortunately, I know no automated tool to convert absolute links to relative. You may have to do it by editing the links one by one.

- gisle

ep_dlc’s picture

OK, thank you. Will find and edit those links.