笔记9,重写URL [英] Notes 9, rewriting URLs
问题描述
如何在Notes 9 XPages中重写URL.
How do you rewrite a URL in Notes 9 XPages.
假设我有:
www.example.com/myapp.nsf/page-name
如何摆脱.nsf部分:
How do I get rid of that .nsf part:
www.example.com/page-name
我不想做很多手动重定向,因为我的页面是像wordpress一样动态形成的.
I don't want to do lots of manual re-direct because my pages are dynamically formed like wordpress.
我已阅读以下内容: http://www.ibm.com /developerworks/lotus/library/ls-Web_site_rules/
它不能解决问题.
推荐答案
如果使用以下替换规则,则可以摆脱db.nsf部分,直接将XPages称为example.com/xpage1.xsp:
If you use substitution rules like the following, you can get rid of the db.nsf part and call your XPages directly as example.com/xpage1.xsp:
Rule (substitution): /db.nsf/* -> /db.nsf/*
Rule (substitution): /* -> /db.nsf/*
但是,例如,您必须手动"生成没有db.nsf部分的网址.菜单,因为XPages运行时将在URL中包含db.nsf部分(例如,如果您使用openPage简单操作).
However, you have to "manually" generate your URLs without the db.nsf part in e.g. menus because the XPages runtime will include the db.nsf part in the URLs if you use for instance the openPage simple action.
这篇关于笔记9,重写URL的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!