关于Resin / Quercus用于Wordpress,这里有一些主题。我只是想确认一下,一旦安装Quercus,Wordpress将按原样使用.php文件扩展名以及所有其他功能?而且所有常规的URL重写等都可以在永久链接中使用?还是我们需要进行一些手动和其他调整? (http://caucho.com/resin-4.0/admin/http-rewrite.xtp)

谢谢!

最佳答案

是的,wordpress无需修改即可为我们在Resin 4.0.x上运行。虽然,您可能希望在WEB-INF / resin-web.xml中为“漂亮” URL映射提供一些重写规则。

我们的看起来像:

<web-app xmlns="http://caucho.com/ns/resin"
         xmlns:resin="urn:java:com.caucho.resin">

  <!-- pass through all actual files to the standard dispatch -->
  <resin:Dispatch regexp="\.">
    <resin:IfFileExists/>
  </resin:Dispatch>

  <!-- pass through all php files to the standard dispatch -->
  <resin:Dispatch regexp="\.php"/>

  <!-- rewrite everything else to be /index.php/foo... -->
  <resin:Forward regexp="^" target="/index.php"/>

</web-app>

关于java - Java环境(Resin + Quercus)中的Wordpress无需任何其他代码调整?,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/12749751/

10-10 04:24