nzmattman
nzmattman

Reputation: 619

Google Load Balancer simple url redirect

I have a simple request.

I need to these routes
/v1/devices/*
and redirect them to
/v1/*

I have set this up enter image description here But it's looking like it's not hitting these routes at all.

We have setup a new API endpoint for the devices to connect to, we can only change the hostname on the devices, so we need to redirect those routes to the new routes. I would prefer not to have to do that in code if I don't have to.

What am I doing wrong?

Upvotes: 0

Views: 1344

Answers (1)

nzmattman
nzmattman

Reputation: 619

So thanks to @guillaume it was an easy fix.

Updating my Path prefix rewrite from /v1/* to /v1/ this has allowed the routes to come in the correct path as expected.

enter image description here

Upvotes: 6

Related Questions