By louibyrdziak
I’ve got a question about moving (linking) the /wp-content directory in WordPress to another droplet within my private network.
I’d like to somehow create a shortcut that allowed me to simply reference it as a folder, if that is possible. However, I’ve included the wp-confg.php snipit of code below that is needed in order to move the wp-content folder. Hope you can give me some idea of the best way of going about this move and redirection.
Thanks anyone for your feedback and help.
----------- wp-config.php snipit ----------
Set WP_CONTENT_DIR to the full local path of this directory (no trailing slash), e.g.
define( ‘WP_CONTENT_DIR’, dirname(FILE) . ‘/blog/wp-content’ );
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
<b>“I’ve got a question about moving (linking) the /wp-content directory in WordPress to another droplet within my private network.”</b> <br> <br>Out of curiosity, why would you want to do that (never heard of that before)?
Well, moving /wp-content or /wp-content/uploads to another server would take the processing loading of off the master. Of course, I won’t know how much until I move it and test is with something like New Relic on both servers. What I don’t know, is how much of a load will be created by on the master server to just pass it thru to the other server. What I am trying to prevent is creating an entire separate subdomain, which also can be done. Open to all feedback. Thanks…
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.