Mose Mose - 2 months ago 28
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

You should use mod_proxy as such in a vhost:

<VirtualHost *:80>
    ProxyPass /
    ProxyPassReverse /
    ProxyPreserveHost On
    <Location />
        Order allow,deny
    Allow from all