9ine
9ine

Reputation: 859

Iplanet Web Server Dynamic Directory Access

Hi I'm new to Iplanet web server.
If the access url is abc.co.sg/XYZ -> would to show abc.co.sg/XYZ/index.html
I can do static directory access in obj.conf

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

What I want is to make the ppath="Dynamic folder"

Thank you!

Upvotes: 0

Views: 191

Answers (1)

9ine
9ine

Reputation: 859

After adding this rule in default object of obj.conf, is can redirect to index page. Thank you

<If $uri =~ '^/([a-zA-Z0-9+-]+)$'>
    NameTrans fn="redirect" url="$uri/index.html"
</If>

Upvotes: 0

Related Questions