@ -539,8 +539,15 @@ message RedirectAction {
/ / The host portion of the URL will be swapped with this value.
/ / The host portion of the URL will be swapped with this value.
string host_redirect = 1 ;
string host_redirect = 1 ;
/ / The path portion of the URL will be swapped with this value.
oneof path_rewrite_specifier {
string path_redirect = 2 ;
/ / The path portion of the URL will be swapped with this value.
string path_redirect = 2 ;
/ / [ # not - implemented - hide : ] Indicates that during redirection , the matched prefix ( or path )
/ / should be swapped with this value. This option allows redirect URLs be dynamically created
/ / based on the request.
string prefix_rewrite = 5 ;
}
enum RedirectResponseCode {
enum RedirectResponseCode {
/ / Moved Permanently HTTP Status Code - 301.
/ / Moved Permanently HTTP Status Code - 301.
@ -565,6 +572,10 @@ message RedirectAction {
/ / The scheme portion of the URL will be swapped with "https" .
/ / The scheme portion of the URL will be swapped with "https" .
bool https_redirect = 4 ;
bool https_redirect = 4 ;
/ / [ # not - implemented - hide : ] Indicates that during redirection , the query portion of the URL will
/ / be removed. Default value is false .
bool strip_query = 6 ;
}
}
message DirectResponseAction {
message DirectResponseAction {