Redirect regex misbehaving when placeholder empty
The problem with your RegEx patterns: /code-examples/(.*) /code-examples/android/(.*) is that they only match when the ending slash (/) is present in the URL; e.g.: # Example 1: $1 is ‘page1’ /code-examples/page1 /code-examples/android/page1 # Example 2: $1 is ” (empty) /code-examples/ /code-examples/android/ # Example 3 # No matches because the ending / is not present. /code-examples … Read more