I have a public server and a secure server for reporting, etc. I receive the request on the Linux server and need to send it to a windows server if the request is for a report on the windows server. I have the following code in .htaccess RewriteCond %{REQUEST_URI} ^/forms/R\.asp$ [NC] RewriteRule ^(.*)/(.*)$ http://servicecheck.net/$1/$2%1 [L,R] note: Incoming URL is http://servicecheck.net/forms/R.asp?S=1051&B=1615&D=081011-081011&R=16284&P22=O RewriteCond %{REQUEST_URI} ^/mysc.asp$ [NC] RewriteRule ^(.*)$ http://64.213.197.19/$1 [L,R=301] Note: http://servicecheck.net/mysc.asp The first rule send the request back to itself. That is my problem. I need it to go to the windows server as the second one does but I need to maintain the domain name."
Thanks for the response. I did use ProxyPass as follows: ProxyPass / https://www.servicecheck.net/ ProxyPassReverse / https://www.servicecheck.net/ for https and RewiteRules in .htaccess for http request that are for the Windows server as follows: RewriteCond %{REQUEST_URI} ^/(.*).asp$ [NC] RewriteRule ^(.*)$ https://www.servicecheck.net/$1 [L,R]