Quantcast
Channel: HAProxy community - Latest topics
Viewing all articles
Browse latest Browse all 4735

Redirect best practice with same URI

$
0
0

When doing a frontend redirect where the path and parms (aka URI) remain the same, is there a best practice to use redirect prefix vs redirect location?

Example - Redirect prefix vs redirect location both give same results:

http-request redirect code 302 prefix https://my.url.com if { path_beg /my_path } #redirect prefix does not alter the path or parms (aka URI)
http-request redirect code 302 location https://my.url.com%[capture.req.uri] if { path_beg /my_path } #passes the un-altered path and parms (aka URI) w/redirect location

2 posts - 2 participants

Read full topic


Viewing all articles
Browse latest Browse all 4735

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>