All pastes #897362 Raw Edit

Anonymous

public text v1 · immutable
·published 2008-02-09 14:38 UTC
rendered paste body
Goal: only oneserver.com should be forwarded to otherserver.com

<VirtualHost 123.123.123.123:80>
    RewriteEngine on
# redirect all to oneserver.biz towards http://www.otherserver.com/
    RewriteCond %{HTTP_HOST}   !^oneserver\.biz [OR]
    RewriteCond %{HTTP_HOST}   !^www\.oneserver\.biz [OR]
    RewriteCond %{HTTP_HOST}   !^$
    RewriteRule ^/(.*)         http://www.otherserver.com/ [L,R]
</VirtualHost>