MirtoBusico commented on issue #6381: URL: https://github.com/apache/apisix/issues/6381#issuecomment-1046067265
Ok @tokers solved using regex way Using these fields in the dashboard <img width="975" alt="apisix_proxy_rewrite" src="https://user-images.githubusercontent.com/11090934/154811980-2254cfcd-346e-4cd2-9658-d48749d74143.png"> I obtain this route definition ``` { "uri": "/pres/*", "name": "m01-www-free", "desc": "access without authentication", "methods": [ "GET", "POST", "PUT", "DELETE", "PATCH", "HEAD", "OPTIONS", "CONNECT", "TRACE" ], "host": "www.m01.net", "plugins": { "proxy-rewrite": { "regex_uri": [ "^/pres/(*)", "/$1" ] }, "redirect": { "http_to_https": true } }, "upstream_id": "394941006623015714", "status": 1 } ``` And it works as expected. Thanks -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
