NameVirtualHost 192.168.101.21 # THIS VHOST WORKS AS EXPECTED ServerName qaaol.tonos.com Header set Cache-Control "no-cache" DocumentRoot /web/server/weblogic/myserver/app2 RewriteEngine On # RewriteLog /usr/local/apache/logs/rewritecond.log # RewriteLogLevel 4 # if a non-AOL client requests aol.tonos.com, rewrite the request RewriteCond %{HTTP_USER_AGENT} !.*AOL* RewriteRule ^/(.*) http://qaapp2.tonos.com/$1 # otherwise, do the following: RewriteRule ^/app1/jsp/index.jsp http://qaaol.tonos.com/app2/tonos/jsp/index_a ol.jsp [R] RewriteRule ^/index.html http://qaaol.tonos.com/app2/tonos/jsp/index_aol.jsp [ R] RewriteRule ^/index.jsp http://qaaol.tonos.com/app2/tonos/jsp/index_aol.jsp [R ] RewriteRule ^/finalists http://qaaol.tonos.com/app2/ar/jsp/finalists.jsp [R] RewriteRule ^/([^/]+)$ http://qaaol.tonos.com/app2/DispatchServlet?e=PURL&l=$1 &/x/u=/Profiles/$1 [R] # THIS ONE DOES NOT ServerName qaapp2.tonos.com Header set Cache-Control "no-cache" DocumentRoot /web/server/weblogic/myserver/app2 RewriteEngine On RewriteLog logs/qaapp2_rewrite.log RewriteLogLevel 4 # if the user-agent is an AOL client, redirect them to the AOL-branded site RewriteCond %{HTTP_USER_AGENT} .*AOL* RewriteRule ^/(.*) http://qaaol.tonos.com/$1 # otherwise, do the following: RewriteRule ^/index.html http://qaapp2.tonos.com/app2/tonos/jsp/index.jsp [R] RewriteRule ^/index.jsp http://qaapp2.tonos.com/app2/tonos/jsp/index.jsp [R] RewriteRule ^/finalists http://qaapp2.tonos.com/app2/ar/jsp/finalists [R] RewriteRule ^/([^/]+)$ http://qaapp2.tonos.com/app2/DispatchServlet?e=PURL&l=$ 1&/x/u=/Profiles/$1 [R] ErrorDocument 403 http://qaapp2.tonos.com/app2/tonos/jsp/index.jsp ErrorDocument 404 http://qaapp2.tonos.com/app2/common/jsp/error_404.jsp ErrorDocument 500 http://qaapp2.tonos.com/common/jsp/error_500.html