Remove double slashes from requests Stay organized with collections Save and categorize content based on your preferences.
You are currently viewing version 1.3 of the Apigee hybrid documentation.This version is end of life. You should upgrade to a newer version. For more information, seeSupported versions.
Problem: double slashes in a request can cause the request not to resolve
Any request that contains a two (or more) consecutive slashes can result in a 404 error. For example/hello//world/. The problem in this example is the "//" betweenhello andworld.
Solution: filter for double slashes
Apply a configuration to your Istio ingress to filter for double slashes in requests and replace them.
- Create a new configuration file named
apigee-merge-slash-filter.yaml. - Paste the following content into the file:
apiVersion: networking.istio.io/v1alpha3kind: EnvoyFiltermetadata: name: apigee-merge-slashes namespace: istio-systemspec: workloadSelector: labels: app: istio-ingressgateway configPatches: - applyTo: NETWORK_FILTER # http connection manager is a filter in Envoy match: context: GATEWAY listener: filterChain: filter: name: "envoy.http_connection_manager" patch: operation: MERGE value: typed_config: "@type": "type.googleapis.com/envoy.config.filter.network.http_connection_manager.v2.HttpConnectionManager" merge_slashes: true
- Apply the configuration with the following command:
kubectl apply -f apigee-merge-slash-filter.yaml
Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2026-02-18 UTC.