EDIT: I see I may not have understood the context. So I will drop an answer for the two possibilities I think:
- If you are using the original solution with
url_rewrite
, alisten_path
at the root andstrip_listen_path
set to true.
...
"version_data": {
"not_versioned": true,
"default_version": "",
"versions": {
"Default": {
"name": "Default",
"expires": "",
"paths": {
"ignored": [],
"white_list": [],
"black_list": []
},
"extended_paths": {
"url_rewrites": [
{
"path": "/valueTwo",
"method": "GET",
"match_pattern": "/valueTwo",
"rewrite_to": "https://httpbin.org/anything",
"triggers": []
},
{
"path": "/valueOne",
"method": "GET",
"match_pattern": "/valueOne",
"rewrite_to": "https://httpbin.org/anything",
"triggers": []
}
]
}
}
}
}
- If you are using the regex
listen_path
withstrip_listen_path
set to false.
...
"extended_paths": {
"url_rewrites": [
{
"path": "/",
"method": "GET",
"match_pattern": "/",
"rewrite_to": "/",
"triggers": []
}
]
}
Depending on your method
and path
, the one above should work. You may have to orchestrate one yourself for a more complex scenario