I have the following:
[Query] How can i redirect all requests from http://34.117.1.48/images/<anything> to http://34.117.1.48/images/three-cats.jpg
Presently, my path rules are as follows:
But how do i go about setting it up.
Any pointers would be helpful.
Thank you!
Hi @mountaincode2 !
To redirect all request from /images/* you should go to your LB configuration -> Host and path rules, select Advanced host and path rule (URL redirect)
There define you host/s and define a new path rule. There put /images/* as your path, under action select "Redirect the client to a different host/path", in Path Redirect select "Full path redirect", input here /images/three-cats.jpg
This configuration will replace everything after /images (even the path itself) and replace it with the desired path.
Depending on the status of this change select the Response Code that is more according to your case.
Hope this helps!
Thank you for the pointer.
If i were to do this, would it affect my earlier configuration.
Also i cannot set it in the Console using the instructions you provided.
The docs say the following:
You can specify one of the following route actions:
- Route traffic to a single service (service).
- Split traffic between multiple services (weightedBackendServices weight:x, where x must be from 0 to 1000).
- Redirect URLs (urlRedirect).
Does it mean that i cannot redirect urls if iam splitting the traffic between the backend service and the backend bucket?