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 don't know whats the correct term for it, but what I'd like is to forward users visiting to without changing the url in their address bar at all, ie. show contents from domain2 but without showing in the address bar.

So for example:

User visits: Should be redirected to:

Additionally, all links (<a> tags) on should be shown as in the statusbar and addressbar.

It is possible without using iframes or other dirty hacks that might hurt SEO?

Many thanks!

share|improve this question
up vote 2 down vote accepted

Apache mod_proxy combined with mod_rewrite can do the domain cloaking you're looking for. However, links on pages are another story. If you're serving static content, I don't know of a way to modify those. If you're serving dynamic content, the application itself would have to modify hrefs to domain1 if it sees the connection coming from the domain1 web-server (which it would if you were using mod_proxy).

For SEO impacts, I recommend asking on, as they're better versed in the marketing of websites than we are.

A very crude and probably incorrect method of accomplishing the domain-cloaking would be something like this in the <VirtualHost> section of the Apache config

RedirectRule $/(.*)$1     [P]

Make sure that LoadModule mod_proxy.c is in the General section. You will definitely want to bullet-proof that, I don't have time right now to tell you how to do that.

share|improve this answer can you please give an example? thanks heaps! – Nimbuz Jul 20 '11 at 11:54
mod_proxy_html can rewrite the links in the output. – matthew Jul 20 '11 at 11:57
@matthew Ah! A third party apache module? Nifty! – sysadmin1138 Jul 20 '11 at 14:16
Static content that is hyperlinking to itself can just use relative URLs instead of absolute URLs, of course. – JdeBP Jul 22 '11 at 16:43

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.