Response headers using RewriteProxy directive

ISAPI_Rewrite is a powerful URL manipulation engine based on regular expressions
User avatar
Posts: 12
Joined: 17 Aug 2015, 09:37

Response headers using RewriteProxy directive

04 May 2017, 10:40

Hi,

I have a question about using the RewriteProxy directive.

I'm using something like the following
RewriteProxy ^/([A-Za-z0-9\-]+)/$ http://myotherwebsite.com/$1/ [H]

The above seems to work in for me - returns the content that I'd want to see.
The only problem is the response headers.

I'm seeing the response headers from the remote server from as well
So I'm getting a response with duplicate fields. e.g.

X-Powered-By:ASP.NET
X-Powered-By:PHP/7.0.15

Question is - how do I remove/suppress the remote site headers from my page response headers?

All the best,

Matt

User avatar
Posts: 12
Joined: 17 Aug 2015, 09:37

Re: Response headers using RewriteProxy directive

04 May 2017, 12:57

I've just realised that I've posted this in the wrong forum; this is actually an ISAPI Rewrite 3 question. I'll move it there. :D

Return to ISAPI_Rewrite 2.x

Who is online

Users browsing this forum: No registered users and 4 guests