Jboss 应用程序遇到重定向循环错误WildFly8

Jboss 应用程序遇到重定向循环错误WildFly8,jboss,wildfly-8,Jboss,Wildfly 8,我试图将服务器从JBoss4.2.2迁移到WildFly-8.2.0。部署war文件时遇到一些问题。War正在部署,但url重写会产生问题 对于4.2.2,同样的内容已写入本地主机文件夹中名为rewrite.properties的文件中 RewriteCond %{REQUEST_URI} !^(.*)[.]([a-zA-Z]+)$ RewriteRule ^/home/(.*)$ /home/index.php?q=$1 [L,QSA] 根据一些文档,我想知道我们可以在我的ROOT.war/

我试图将服务器从JBoss4.2.2迁移到WildFly-8.2.0。部署war文件时遇到一些问题。War正在部署,但url重写会产生问题

对于4.2.2,同样的内容已写入本地主机文件夹中名为
rewrite.properties
的文件中

RewriteCond %{REQUEST_URI} !^(.*)[.]([a-zA-Z]+)$
RewriteRule ^/home/(.*)$ /home/index.php?q=$1 [L,QSA]
根据一些文档,我想知道我们可以在我的ROOT.war/WEB-INF/文件夹中创建一个
undertowhandlers.conf
,然后

如何将上面的正则表达式[]格式放在'undertowhandlers.conf'中

试过这个

regex['/home/(.*)$']->重写['/home/index.php']

似乎url已正确加载并重定向到主页。但应用程序遇到重定向循环错误。我指的是 还有文件。似乎我们可以配置http连接器来防止重定向循环,如下所示:

<connector name="http" protocol="HTTP/1.1" scheme="http" socket-binding="http" proxy-name="${env.OPENSHIFT_GEAR_DNS}" proxy-port="443" secure="true"/>
远程主机已强制关闭现有连接

请帮我解决这个问题

My web.xml:

<servlet-mapping>
   <servlet-name>Quercus Servlet</servlet-name>
   <url-pattern>*.php</url-pattern>
 </servlet-mapping>

 <welcome-file-list>
   <welcome-file>index.php</welcome-file>
 </welcome-file-list>

Quercusservlet
*.php
index.php

相当于重写条件的牵引力为:

regex['/home/(.*)$'] -> rewrite['/home/index.php?q=${1}']

我很确定异常与正则表达式本身无关。

没有具体的错误,我怀疑循环重定向是否是由于缺少此条件造成的。
RewriteCond%{REQUEST\u URI}^(.*)[.]([a-zA-Z]+)$
来自WildFly。
regex['/home/(.*)$'] -> rewrite['/home/index.php?q=${1}']