Question

How do I link directories over a private network?

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’ );


Submit an answer

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!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

Sounds good. :]

Pablo thanks for chiming in. I appreciate it, however, this is not a database. This is a directory /wp-content, so I guess you must not be familiar with WordPress because you’d have known that right off from the original question. <br> <br>Kanal, you’re right and I agree that NFS is most likely the best way to handle this and because like you say it is inside the DO DC PN it should be about as fast as anything could possibly be. <br> <br>Yes, a database would be handled quite differently but this is a folder with images that I want to setup parallel connections to clients browsers by off loading them to a foo.domain.com <br> <br>Any more feedback appreciated. However, I think I’ve figure it out.

There shouldn’t be any latency because it’s routed inside the DC. It should be <1ms latency.