I need apache RewriteRule for the following scenario 1. /test/ to /test/ 2. /test/a to /test/ 3. /test/b to /test/ 4. /test/c/1 to /test/ The below RewriteRule works RewriteRule ^/test/[abc].+$ /test/ [NC,PT] What would be the rewrite rule that would say, if there are one or more characters after `/test/` it must be redirected to `/test/`. I tried ^/test/.+$ /test/ [NC,PT] but this did not match in any of the 4 cases and redirects to 404.