Forum Moderators: phranque
RewriteEngine On
RewriteCond %{REQUEST_URI} ^/(.*)asp$
RewriteRule ^(.*) [192.168.0.1:81...] [P,L]
This works, but it doesn't satisfy me thuogh because it's looking for .asp in the REQUEST_URI, not the filename itself (so if the file doesn't exist it would still get passed to IIS and returns an IIS 404 instead of returning an Apache 404). Also, it doesn't work for directory indexes where the .asp isn't actually part of the Request_Uri (e.g. for default.asp pages, where default.asp isn't actually specified). Any ideas?
Much thanks in advance,
Basil
RewriteRule ^(.*) [192.168.0.1:81...] [P,L]Does anyone have any experience with the mod_rewrite proxy switch/function? I fooled with it a few years ago and never did get it to work as I expected. Nor did I fully understand how it should work, so I just scrapped it all and wrote a darn script.