Uploading to symlink
-
Im trying to get WordPress to upload files to a directory on that is located in a different root directory.
WordPress tries to upload to /var/www/vhosts/domain.com/httpdocs/wp-content/uploads
I want it to upload to /var/www/vhosts/domain.com/subdomains/img/httpdocs/uploads
I created a symlink from /var/www/vhosts/domain.com/httpdocs/wp-content/uploads -> /var/www/vhosts/domain.com/subdomains/img/httpdocs/uploads
i can view the correct files externally but when i go to upload it does not see any of the year or month folders where the files are located. I changed the ownership of the actual folder and the symlink to 777 and used recursive but nothing.
Any ideas?? Im doing this because images are being pulled from a subdomain that is hosted on the same server img.domain.com.
Thanks
- The topic ‘Uploading to symlink’ is closed to new replies.