Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

Performing a redirect based on URL and verb.

Not applicable

I'm trying to form a redirect to a specific endpoint -> /offers. I'm not exactly sure where to put the new header info in my flow. Here is the flow I added. It matches the verb and URL but, doesn't set the new header.

<Flow name="redirect-offers">
    <Response>
        <Set>
            <StatusCode>302</StatusCode>
            <Header name="Location">http://www.google.com</Header>
        </Set>
    </Response>
    <Condition>(proxy.pathsuffix MatchesPath "/offers") and (request.verb = "GET")</Condition>
</Flow>

Am I trying to set the header in the wrong place?

0 3 3,654
3 REPLIES 3
Top Solution Authors