1

I don't know whats the correct term for it, but what I'd like is to forward users visiting domain1.com to domain2.com without changing the url in their address bar at all, ie. show contents from domain2 but without showing domain2.com in the address bar.

So for example:

User visits: http://domain1.com/path/to/internal/link/ Should be redirected to: http://domain2.com/path/to/internal/link/

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

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

Many thanks!

Nimbuz
  • 139
  • 1
  • 1
  • 8

1 Answers1

2

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 http://webmasters.stackexchange.com, 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 $/(.*)     http://other.example.com/$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.

sysadmin1138
  • 131,083
  • 18
  • 173
  • 296