Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想像这样重写wildlfy 8中的所有url
url/home/anything to URL/home/index.php?q=anything
我怎样才能在 undertow-handlers 配置文件中写这个。
现在我的规则是这样的,但这不起作用。
regex['^/home/(.*)$'] -> rewrite['/home/index.php?q=${0}']
请帮忙
Undertow Rewrite 在 wildfly 8 中存在一些问题。 Rewrite 不会直接在 url 中传递 get 变量,例如 regex['/home/(.*)$'] -> rewrite['/home/index.php?gender=men'],
regex['/home/(.*)$'] -> rewrite['/home/index.php?gender=men']
相反,它必须通过,如下所示
set[attribute='%{q,gender}', value='men'];