Wordpress droplet as a directory, on another droplet?

May 26, 2016 1.2k views
DNS Configuration Management WordPress

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.

1 Answer

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.

Have another answer? Share your knowledge.