I have created a sub-domain img.domain.com and in the database I have changed the required paths inserting the root and the url to this sub-domain. I have also changed these paths in options.php under admin setup.

All my media is uploading nicely to the new subdomain, with the year and all; folders being automatically created. In media library the image shows the link to the collect location of the image, but the image in the media library is just a blank grey box.

Am I missing something here with permissions or needing to enqueue in functions.php?

1 Answer 1


Managed to solve it myself..

So if anyone else has this problem.

Because the sub-domain is still under the main domain you do not have to put -


you only need the


and everything will work..

hope this helps someone.. Richard

Your Answer

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

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