<p>We are putting up a company blog at companyname.com/blog but for now the blog is a Wordpress installation that lives on a different server (blog.companyname.com). </p>

<p>The intention is to have the blog and web site both on the same server in a month or two, but that leaves a problem in the interim.</p>

<p>At the moment I am using mod_rewrite to do the following:</p>

<p><a href="http://companyname.com/blog/article-name" rel="nofollow noreferrer">http://companyname.com/blog/article-name</a> redirects to <a href="http://blog.companyname.com/article-name" rel="nofollow noreferrer">http://blog.companyname.com/article-name</a></p>

<p>Can I somehow keep the address bar displaying companyname.com/blog even though the content is coming from the latter blog.companyname.com? </p>

<p>I can see how to do this if it is on the same server and vhost, but not across a different server?</p>

<p>Thanks</p>

Rather than using mod_rewrite, you could use
mod_proxy
to set up a reverse proxy on companyname.com, so that requests to
http://companyname.com/blog/article-name
are proxied (rather than redirected) to
http://blog.companyname.com/article-name
.
Here are
more instructions and examples
.