Transform rules with wildcard pattern gives 404

What is the name of the domain?

www.zopim.org

What is the issue you’re encountering

Transform rules with wildcard pattern giving 404

What steps have you taken to resolve the issue?

Tried creating transform rules using 2 ways:

type: Custom filter expression
URI Path: /api/v2* and hostname = www.zopim.org
rewrite to: wildcard_replace(http.request.uri.path, “/api/v2*”, “/api/v2/chat${1}”)

Type: wildcard pattern
Request URL: https:///api/v2/*
Target Path: api/v2/chat${1} Rewrite to:api/v2/chat${1}

Curl gives with I try to hit /api/v2/chats/
{“error”:“Not Found”,“description”:“The requested URL was not found on the server. If you entered the URL manually please check your spelling and try again.”}

What are the steps to reproduce the issue?

Tried creating transform rules using 2 ways:

type: Custom filter expression
URI Path: /api/v2* and hostname = www.zopim.org
rewrite to: wildcard_replace(http.request.uri.path, “/api/v2*”, “/api/v2/chat${1}”)

Type: wildcard pattern
Request URL: https:///api/v2/*
Target Path: api/v2/chat${1} Rewrite to:api/v2/chat${1}

Curl gives with I try to hit /api/v2/chats/
{“error”:“Not Found”,“description”:“The requested URL was not found on the server. If you entered the URL manually please check your spelling and try again.”}

A post was merged into an existing topic: Transform rules with wildcard pattern giving 404