在LiftWeb应用中设置/更改默认(“索引")页面 [英] Setting / changing the default ("index") page in a LiftWeb app
本文介绍了在LiftWeb应用中设置/更改默认(“索引")页面的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我疯狂地用谷歌搜索,但找不到答案.
I've googled like crazy but can't find an answer to this.
如何更改为http://www.mydomain.com/
显示的页面? (在创建Web应用程序后,页面默认为index.html
.我想更改此设置!)
How do I change the page displayed for http://www.mydomain.com/
? (Right after the web app is created the page defaults to index.html
. I'd like to change this!)
推荐答案
您不能更改它.
Lift将对"/"的请求转换为List("index").请求路径的任何空白"部分都将转换为索引".因此,"index.html"模板将用于提供"/index"和"/".
Lift converts the request for "/" to List("index"). Any "blank" part of the request path is converted into "index". Thus, the "index.html" template will be used to serve "/index" and "/".
这篇关于在LiftWeb应用中设置/更改默认(“索引")页面的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文