Posted by billp44ruby on July 29, 2014 at 6:44pm
Is it possible to setup a multisite implementation (either subdomain or subfolder) and then use some sort of redirect to have that content displayed under a different domain name / folder? It's been suggested that I might be able to use .htaccess to do that, but I'm wondering if anybody has any experience in how that might work.
Specifically, I want to build a microsite on site.mydomain.com or mydomain.com/site. But my client's site is theirdomain.com and they want to access the content from theirdomain.com/site. Is this feasible for multisite installations?
Comments
probably not multisite specific
I think what you're looking for is a proxy. If you have mod_proxy, you can do this in the .htaccess RewriteRule.
If site.mydomain.com and theirdomain.com are on different servers, etc. You are basically running a reverse proxy and can do this more efficiently with other tools like varnish or apache/nginx confs directly.
It's not trivial and bound to break eventually. Part of the question is whether or not you have access to theirdomain.com/site and could just put the drupal installation there. That should work as well and would be simpler, but if theirdomain.com isn't something you get access to then they'll have to implement the proxy rules.