Question

Wordpress droplet as a directory, on another droplet?

I hope that makes sense.

Basically, we’re going to have a javascript app running at domain.com, and I want Wordpress installed on domain.com/blog. It’s better for SEO to do domain.com/blog rather than blog.domain.com. So the javascript app would be one droplet, and then the Wordpress install would be another droplet. Is there a way to set it up with a CNAME or something to have /blog point to one droplet and everything else on the domain point to the other droplet?

Domain was registered at namecheap.


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.

The only way I know of to accomplish your intended result is to have a load distributor like Varnish processing the paths. For example, you would have your domain name pointed at your varnish server, another server with your domain.com, then another server with your domain.com/blog. Varnish would process requests to your main domain and the /blog.