Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Wordpress: move media folder

I want to move a folder (/uploads/2010) to another server, but I want the main site to have access to files from folder moved.

For example, if now I have a picture url: 2010/pic.jpg

Full url: http://www.domanin.com/wp-content/uploads/2010/pic.jpg

the new url will be: http://www.domanin-2.com/uploads/2010/pic.jpg

Is there any solution for my problem?

Apologize for my English!

like image 964
user2151960 Avatar asked Jun 30 '26 21:06

user2151960


1 Answers

You can point www.domanin-2.com to another server. You're able to do this by editing DNS records for domanin-2.com. In this case you'll be able to read files, but if you want to write files there, you'd have to change Wordpress's source code, to allow the communication between 2 servers (e.g via CURL or FTP).

like image 159
TheJSB Avatar answered Jul 02 '26 10:07

TheJSB



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!