Search code examples
wordpresswordpress-themingshared-hosting

Two wordpress installations in the same server using images from one wp-contet/uploads


I have two wordpress websites in one shared hosting, Installed in two separate folders in the public_html folder.

1) public_html/abc

2) public_html/xyz

Is there anyway i can use the images from public_html/abc/wp-content/uploads as my images source for the website in public_html/xyz.

The reason i am trying to do this is, my hosting godaddy in restricting files allowed in the account to 250000. And most of the images in both my sites are common.


Solution

  • You can define the uploads folder in your wp-config.php file, more info here https://codex.wordpress.org/Editing_wp-config.php under 'Moving uploads folder'