Why is my site which resides in a subfolder broken when visiting it through a subdomain URL? I have a Drupal 8 website on a server in a subfolder called news so the homepage for this Drupal instance is www.site.com/news. The original www.site.com was not Drupal so this is why this was done. Fast-forward to today, we've redone www.site.com as its own Drupal instance on another server and would like to still use the old news site where it's at. What we've done was create a subdomain of www.news.site.com pointing to the other server so that it could be its own instance, however, when you visit the site from that new subdomain URL, most of the links/images are broken due to it looking for files at /news/filename.jpg or /news/article-title.
What would be the best way to set up either server so that the new subdomain works properly? Should we have set this up another way?
Let me know if any other details are needed and I will happily supply them.
From your description it looks like you need to

add your subdomain to proper site folder. Check your sites.php to be correct, for example-



Check your settings.php to allow your sub-domain as per the documentation-



Check if image urls are hard coded

Cache or CDN plugin are affecting it.


Adding the type of error you are getting could let us help you better.