Mose Mose - 1 year ago 122
Apache Configuration Question

Redirect a domain invisibly

I have a customer who wants his domain to be redirected to some other site. For example: =>

the redirection should be transparent so should translate to

important to him is, should never be visible to the user. the user should see because of this frames aren't an option. also frames are not the best options for SEO.

I tried using mod_rewrite for this, using this rule:

RewriteRule (.*)$1 [L]

It works fine, except the URI translates to so the user could see it. How could I translate invisibly?

3on 3on
Answer Source

You should use mod_proxy as such in a vhost:

<VirtualHost *:80>
    ProxyPass /
    ProxyPassReverse /
    ProxyPreserveHost On
    <Location />
        Order allow,deny
    Allow from all
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download