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 "//" betweenhelloandworld.
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 namedapigee-merge-slash-filter.yaml.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-04 UTC."],[[["\u003cp\u003eThe current Apigee hybrid documentation version 1.3 is end of life and users should upgrade to a newer version.\u003c/p\u003e\n"],["\u003cp\u003eRequests containing two or more consecutive slashes (e.g., \u003ccode\u003e//\u003c/code\u003e) can lead to a 404 error.\u003c/p\u003e\n"],["\u003cp\u003eTo resolve this, configure the Istio ingress to filter for and replace double slashes in requests.\u003c/p\u003e\n"],["\u003cp\u003eA new configuration file, \u003ccode\u003eapigee-merge-slash-filter.yaml\u003c/code\u003e, must be created with specific content to enable slash merging.\u003c/p\u003e\n"],["\u003cp\u003eThe configuration file is applied using \u003ccode\u003ekubectl apply -f apigee-merge-slash-filter.yaml\u003c/code\u003e.\u003c/p\u003e\n"]]],[],null,["# Remove double slashes from requests\n\n| 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, see [Supported versions](/apigee/docs/hybrid/supported-platforms#supported-versions).\n\nProblem: double slashes in a request can cause the request not to resolve\n-------------------------------------------------------------------------\n\n\nAny request that contains a two (or more) consecutive slashes can result in a 404 error. For\nexample `/hello//world/`. The problem in this example is the \"`//`\" between\n`hello` and `world`.\n\nSolution: filter for double slashes\n-----------------------------------\n\n\nApply a configuration to your Istio ingress to filter for double slashes in requests and\nreplace them.\n\n1. Create a new configuration file named `apigee-merge-slash-filter.yaml`.\n2. Paste the following content into the file: \n\n ```\n apiVersion: networking.istio.io/v1alpha3\n kind: EnvoyFilter\n metadata:\n name: apigee-merge-slashes\n namespace: istio-system\n spec:\n workloadSelector:\n labels:\n app: istio-ingressgateway\n configPatches:\n - applyTo: NETWORK_FILTER # http connection manager is a filter in Envoy\n match:\n context: GATEWAY\n listener:\n filterChain:\n filter:\n name: \"envoy.http_connection_manager\"\n patch:\n operation: MERGE\n value:\n typed_config:\n \"@type\": \"type.googleapis.com/envoy.config.filter.network.http_connection_manager.v2.HttpConnectionManager\"\n merge_slashes: true\n ```\n3. Apply the configuration with the following command: \n\n ```\n kubectl apply -f apigee-merge-slash-filter.yaml\n ```"]]