[
https://issues.jboss.org/browse/WFLY-9594?page=com.atlassian.jira.plugin....
]
Stuart Douglas edited comment on WFLY-9594 at 12/6/17 1:35 AM:
---------------------------------------------------------------
Please ask for help on the forums, JIRA is for bug reports.
That said you can do this in standalone.xml using an expression-filter in the filters
section.
You probably want something like:
{code}
path-prefix(/a/) -> rewrite(/c/${remaining})
{code}
If you want to use regex:
{code}
regex('^/a/(.*)') -> rewrite('/c/${1}')
{code}
was (Author: swd847):
Please ask for help on the forums, JIRA is for bug reports.
That said you can do this in standalone.xml using an expression-filter in the filters
section.
You probably want something like:
path-prefix(/a/) -> rewrite(/c/${remaining})
If you want to use regex:
regex('^/a/(.*)') -> rewrite('/c/${1}')
url rewriting doesnt work in wildfly 8.2.1
------------------------------------------
Key: WFLY-9594
URL:
https://issues.jboss.org/browse/WFLY-9594
Project: WildFly
Issue Type: Bug
Components: Web (Undertow)
Affects Versions: 8.2.1.Final
Reporter: SATISH POKALWAR
Assignee: Stuart Douglas
I have an application running on wildfly 8.2.1 which is upgraded from jboss 6.4. for URL
rewriting in jboss 6.4 , we have virtual server section in standlone-full.xml however to
do the same on wildfly 8.2.1 its been suggested to write the rule in
undertow-handlers.conf and put the same in WEB-INF directory ,however that is not
working.Basically i want to rewrite
http://ip_address/a and
http://ip_address/b to
http://ip_address/c , to do the same i have written below rule in undertow-handlers.conf
it is not working, regex['^/a/$'] -> rewrite['/c/$1']. Can anyone tell
if am doing anything wrong , similiar rule used to work in JBOSS 6.4
--
This message was sent by Atlassian JIRA
(v7.5.0#75005)