0

I have created a subdomain - example sub.homepage.com. The subdomain is pointing to a server. But I need the template to be the same as my website.

My question: Can I somehow include the content of that subdomain inside a block or view, or something else?

thanks

1 Answer 1

0

I think I got the answer on this.

I've created a new block, added this:

<?php print file_get_contents("http://sub.homepage.com/"); ?>

Remember textformat should be PHP.

And it worked. It now shows my subdomain inside my template.

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.