0

嗨,我是 Iplanet 网络服务器的新手。
如果访问 url 是abc.co.sg/XYZ -> 将显示abc.co.sg/XYZ/index.html
我可以在obj.conf中进行静态目录访问

 <Object name="xxx" ppath="/abcd/card/apply">
      NameTrans fn="rewrite"
      root="/app/iplanetweb/docs/abcd/card/apply"
      path="/index.html"
 </Object>

我想要的是使 ppath="动态文件夹"

谢谢!

4

1 回答 1

0

在 obj.conf 的默认对象中添加此规则后,可以重定向到索引页面。谢谢

<If $uri =~ '^/([a-zA-Z0-9+-]+)$'>
    NameTrans fn="redirect" url="$uri/index.html"
</If>
于 2018-08-08T12:55:37.600 回答