0 Replies Latest reply on Mar 24, 2017 3:52 AM by m chirujboss

    Wildfly10 Rewrite configuration

    m chirujboss Newbie

      I have copied Root.war in deploy directory and it's WEB-INF directory i have copied "undertow-handlers.conf" file. Contents of this file are as below (highlighted bold)

      regex('/[0-9](.*)')  -> rewrite('/cms/cr.jsp?qp=${0}')

       

      When we access url  http://192.168.1.23/14c3  it is giving error as 404. But it should redirect to "/cms/cr.jsp" of other war(cms) file.  Please find the access log for the same as below

       

      192.162.1.134 - - [24/Mar/2017:12:58:42 +0530] "GET /cms/cr.jsp?qp=/??qp=/ HTTP/1.1" 404 CF0M0yaIeoer2JPMPoHeOl4IMzLDldqwIzZLMieQ 319 -  - 919953563306 - - - "Mozilla/5.0 (Linux; U; Android 2.3.6; en-au; LG-E400 Build/GRK39F) AppleWebKit/533.1 (KHTML, like Gecko) Version/4.0 Mobile Safari/533.1" "-" - CF0M0yaIeoer2JPMPoHeOl4IMzLDldqwIzZLMieQ-

       

      When we access type the url  "http://192.168.1.23/cms/cr.jsp?qp=14c3" in browser and it is working fine.

       

      Please help on this ASAP