how to change wp upload directory to another domain directory


both main and second domain (addon domain ) are in same host
i want to find a way to change upload directory to another directory that located in another domain root.

default location (first location) : My main domain upload directory is : /domains/

destination location (second location) : the destination directory. is : /domains/

I want to define second domain upload directory as main domain upload dir

I mean I want upload directory uses from the second domain upload directory.

for example can i use another wordpress root location address from same host in this code in wp-config.php ?

 wp config function: define('UPLOADS', 'destination directory');

if its matter i use shared hosting and my control panel is directadmin

is this possible ?

Positive Mind 2 months 0 Answers 13 views 0

Leave an answer