Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have a domain,, which I would like to display content from another site. For example, imagine that there is content at this url -->, and I would like the content from that page to be displayed when a user visits, without the user seeing the URL from

I currently use the following apache directive in my .htaccess:

<IFModule mod_rewrite.c>
RewriteEngine on
RewriteRule ^(.*)$$1 [L]

However, this redirects the user's browser to the URL in, which I do not want.

Is this even possible?

share|improve this question
up vote 3 down vote accepted

You can combine mod_rewrite with mod_proxy to do transparent redirect (reverse proxy) with mod_rewrite by add P flag to RewriteRule

  <IFModule mod_rewrite.c>
  RewriteEngine on
  RewriteRule ^(.*)$$1 [P,L]
share|improve this answer
thank you. this is exactly what I wanted! :) cheers.. – Hamed Momeni Jul 27 '11 at 6:55

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.