Is it possible to for a domain e.g. www.myclient.com to have a sub directory hosted on a completly different (our) server?
They don't want to point subdomain.myclient.com to our servers so they want it as folder www.myclient/subdomain/
Thanks in advance.
The only way to get a subfolder like /blog to go to another server is with a redirect, and Google doesn't like that as much. To do so, in your domain's zone file, create an A record with "blog" and point it at the IP of your Wordpress server.
Files are organized by storing related files in the same directory. In a hierarchical file system (that is, one in which files and directories are organized in a manner that resembles a tree), a directory contained inside another directory is called a subdirectory.
As discussed in the comments, your only option is a Proxy. Everything else (Like mod_rewrite / Alias) will do a header redirect, and expose the target address to the user.
However, Apache's proxying doesn't seem to be that complicated. The most basic example is
ProxyPass /mirror/foo/ http://backend.example.com/
Note that a proxy will of course double your traffic, because every byte requested will have to be fetched from the remote machine.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With